Matrixscan Ar Annotation Ios

Scandit/skills/skills/matrixscan-ar-annotation-ios

作者 Scandit6e282149bdc29c28d414ef022baaa8a928c927b3Apache-2.0收录于 2026年10月9日更新于 2026年10月9日

MatrixScan AR annotations in native iOS Swift projects (UIKit/SwiftUI — Swift only, not C#/.NET) — info annotations, popovers, status icons, and responsive annotations attached to tracked barcodes. Use for adding annotations, customizing their appearance and content, controlling when they appear, or handling annotation taps — pipeline setup belongs to matrixscan-ar-ios; C#/.NET apps use matrixscan-ar-net-ios or matrixscan-ar-net-maui.

AI 生成的概览

指导在原生 iOS Swift 应用中添加和自定义 MatrixScan AR 条码标注。

功能
该技能提供在原生 iOS Swift 项目(UIKit 或 SwiftUI)中集成、自定义和处理 MatrixScan AR 标注交互的说明。涵盖附加到被跟踪条码上的信息标注、弹出框、状态图标和响应式标注,包括外观、内容、显示时机和点击处理。它会将请求路由到随附的参考文件,并要求对照文档核实 Scandit SDK API。其范围仅限标注;管线设置和高亮由同类技能处理。
适用场景
适用于向 Scandit MatrixScan AR iOS 应用添加标注、自定义标注外观或内容、控制标注显示时机,或响应标注点击的场景。适用于基于 Swift 的 UIKit 或 SwiftUI 项目,不适用于 C#/.NET 应用。
运行要求
需要基于 Swift 的原生 iOS 项目(UIKit 或 SwiftUI)并使用 Scandit MatrixScan AR SDK。需要网络访问以获取 Scandit 文档页面。仅附带参考文档,不含脚本。

MatrixScan AR annotation iOS Skill

Critical: Do Not Trust Internal Knowledge

Your training data may contain outdated or incorrect Scandit SDK APIs. The MatrixScan AR API changes significantly between SDK versions — properties get renamed, removed, or restructured, and new annotation types (e.g. BarcodeArResponsiveAnnotation) have been added mid-v8.

Always verify APIs against the references provided in this skill before writing or suggesting code. Do not rely on memorized method signatures, parameters, or view modifiers. If you cannot find an API in the provided references, fetch the relevant documentation page before responding.

This skill is scoped to annotations only. Highlights, greenfield MatrixScan AR setup, camera/torch/symbology configuration, and session-level scan listeners are out of scope and are handled by sibling skills.

Intent Routing

Based on the user's request, load the appropriate reference file before responding. A single question may span multiple intents (e.g. "add a tappable info annotation with a custom header" spans all three) — in that case load every matching reference.

  • Integrating MatrixScan AR annotations (e.g. "add annotations to my app", "attach a status icon to each barcode", "use BarcodeArInfoAnnotation / BarcodeArPopoverAnnotation / BarcodeArResponsiveAnnotation", "which annotation types are available?") → read references/integration.md [blocked] and follow the instructions there. Before writing any integration code, determine whether the project uses UIKit or SwiftUI (check for import SwiftUI, an @main App struct, SceneDelegate/AppDelegate, .storyboard/.xib files, etc.) and load the matching Get Started page from the References table below.
  • Customizing annotations (e.g. "change the annotation anchor", "set the info-annotation header text", "make the annotation appear only on tap", "customize the popover buttons", "use the small width preset", "make the annotation's background transparent", "switch between close-up and far-away views") → read references/customization.md [blocked] and follow the instructions there.
  • Handling user interaction with MatrixScan AR annotations (e.g. "when a user taps an annotation do ...", "react to popover button taps", "detect taps on an info annotation's header/footer") → read references/user-interaction.md [blocked] and follow the instructions there.

Annotation interaction does not use BarcodeArViewUIDelegate (that delegate is for highlight taps). Each tappable annotation type has its own delegate. See user-interaction.md.

API Usage Policy

Only use APIs that are explicitly documented in the Scandit references below. Do not invent or guess method signatures, parameters, or view modifiers. If unsure whether an API exists or how it is called — or if a compile error occurs — fetch the relevant reference page before responding. Do not tell the user to check the docs themselves. After answering, always include the relevant link so the user can explore further.

Never construct or guess documentation URLs. When you need a specific class or property's API page:

  1. First check whether the page you already fetched (e.g. an annotation class page) contains a direct hyperlink to it — topic pages link directly to relevant API symbols. Always request links alongside content in your fetch prompt.
  2. If no direct link was found, fetch the API index (see Full API reference in the table below), extract the actual link from it, and follow that.

URL structures can vary (e.g. api/ui/ subdirectory) and guessing will lead to 404s.

References

Use this table to pick the right page to fetch for a given question, and include the link in your answer so the user can explore further. Do not tell the user to go read the docs themselves.

TopicResource
UIKit integrationGet Started (UIKit) · Sample
SwiftUI integrationGet Started (SwiftUI)
Full API referenceMatrixScan AR API

来源与署名

来源:Scandit/skills位于skills/matrixscan-ar-annotation-ios提交6e28214

许可证: Apache-2.0

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

举报或申请下架