barcode-capture-ios
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseBarcodeCapture iOS Skill
BarcodeCapture iOS Skill
Critical: Do Not Trust Internal Knowledge
重要提示:请勿依赖内部知识
Your training data may contain outdated or incorrect Scandit SDK APIs. The BarcodeCapture API changes between major SDK versions — properties get renamed, removed, or restructured.
Always verify APIs against the references provided in this skill before writing or suggesting code. Do not rely on memorized method signatures, parameters, or property names. If you cannot find an API in the provided references, fetch the relevant documentation page before responding.
你的训练数据可能包含过时或错误的Scandit SDK API。BarcodeCapture API在SDK主要版本之间会发生变化——属性会被重命名、移除或重构。
在编写或建议代码之前,请务必对照本技能中提供的参考文档验证API。不要依赖记忆中的方法签名、参数或属性名称。如果在提供的参考中找不到相关API,请先获取对应的文档页面再进行回复。
Intent Routing
意图路由
Based on the user's request, load the appropriate reference file before responding:
- Integrating BarcodeCapture from scratch, configuring settings, customizing feedback, adding a viewfinder, handling scans, or doing async work after a scan (e.g. "add BarcodeCapture to my app", "set up barcode scanning", "how do I use BarcodeCapture in iOS", "filter duplicate scans", "suppress the beep", "add a viewfinder", "disable scanning while I look up the barcode") → read references/integration.md and follow the instructions there.
- Migrating or upgrading an existing BarcodeCapture integration (e.g. "upgrade from v6 to v7", "migrate my BarcodeCapture", "bump the Scandit SDK to v8", "what changed between SDK versions") → read references/migration.md and follow the instructions there.
- Replacing a third-party barcode scanner with BarcodeCapture (e.g. "replace my [scanner] with BarcodeCapture", "migrate from [framework] to BarcodeCapture", "switch from [library] barcode scanning to BarcodeCapture") → read references/third-party-migration.md and follow the instructions there.
根据用户的请求,在回复前加载对应的参考文件:
- 从零开始集成BarcodeCapture、配置设置、自定义反馈、添加取景器、处理扫描结果或扫描后执行异步操作(例如“在我的应用中添加BarcodeCapture”、“设置条码扫描”、“如何在iOS中使用BarcodeCapture”、“过滤重复扫描结果”、“关闭提示音”、“添加取景器”、“查询条码信息时禁用扫描”)→ 阅读references/integration.md并遵循其中的说明。
- 迁移或升级现有的BarcodeCapture集成(例如“从v6升级到v7”、“迁移我的BarcodeCapture”、“将Scandit SDK升级到v8”、“SDK版本之间有哪些变化”)→ 阅读references/migration.md并遵循其中的说明。
- 用BarcodeCapture替换第三方条码扫描器(例如“用BarcodeCapture替换我的[扫描器]”、“从[框架]迁移到BarcodeCapture”、“从[库]条码扫描切换到BarcodeCapture”)→ 阅读references/third-party-migration.md并遵循其中的说明。
API Usage Policy
API使用规范
Only use APIs that are explicitly documented in the Scandit references below. Do not invent or guess method signatures, parameters, or property names. 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:
- First check whether the page you already fetched contains a direct hyperlink to it — topic pages link directly to relevant API symbols. Always request links alongside content in your fetch prompt.
- 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. subdirectory) and guessing will lead to 404s.
api/ui/仅使用以下Scandit参考文档中明确记录的API。不要自行编造或猜测方法签名、参数或属性名称。如果不确定某个API是否存在或如何调用——或者出现编译错误——请先获取对应的参考页面再回复。不要让用户自己去查看文档。回复后,请始终附上相关链接,方便用户进一步探索。
切勿构造或猜测文档URL。 当你需要某个类或属性的API页面时:
- 首先检查已获取的页面是否包含指向该页面的直接超链接——主题页面会直接链接到相关的API符号。在获取内容时,请始终在请求中同时索要链接。
- 如果未找到直接链接,请获取API索引(见下表中的完整API参考),从中提取实际链接并访问。
URL结构可能会有所不同(例如子目录),猜测会导致404错误。
api/ui/References
参考资源
Direct users to the right resource based on their question:
| Topic | Resource |
|---|---|
| UIKit integration | Get Started (UIKit) · Sample |
| SwiftUI integration | Get Started (SwiftUI) |
| Migration between major SDK versions | 6 → 7 · 7 → 8 |
| Full API reference | BarcodeCapture API |
根据用户的问题引导至正确的资源:
| 主题 | 资源 |
|---|---|
| UIKit集成 | 快速开始(UIKit) · 示例 |
| SwiftUI集成 | 快速开始(SwiftUI) |
| SDK主要版本间迁移 | 6 → 7 · 7 → 8 |
| 完整API参考 | BarcodeCapture API |