Matrixscan Count Net Maui 标志

Matrixscan Count Net Maui

组织
Scandit
matrixscan-count-net-maui

MatrixScan Count (BarcodeCount) in .NET MAUI projects (<UseMaui>true</UseMaui>, Scandit.DataCapture.Barcode.Maui NuGet) — counting/receiving workflows with the BarcodeCountView XAML control and capture/receiving lists. For non-MAUI .NET use matrixscan-count-net-android or matrixscan-count-net-ios. Use for integration, XAML and builder-chain setup, result handling, UI customization, SDK version migration, or troubleshooting counting workflows.

概览

发布者Scandit
代码仓库skills
技能名称matrixscan-count-net-maui
星标数
21
复刻数
2
附带文件
2
许可协议Apache-2.0
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 2 个附带文件

    模型执行任务时可读取的脚本、模板和参考资料。这些文件为只读文件,绝不会被执行。

  • 开源

    由 Scandit 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Matrixscan Count Net Maui AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/Scandit/skills/tree/dist/skills/matrixscan-count-net-maui
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Scandit/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/skills/matrixscan-count-net-maui .claude/skills/matrixscan-count-net-maui
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Matrixscan Count Net Maui,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Matrixscan Count Net Maui。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Matrixscan Count Net Maui 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

MatrixScan Count .NET MAUI Skill

Critical: Do Not Trust Internal Knowledge

Your training data may contain outdated or incorrect Scandit SDK APIs. The .NET binding differs from the Kotlin/Java and Swift native SDKs (factories instead of constructors, PascalCase members, C# events alongside listener interfaces), and the .NET MAUI integration adds its own handler/XAML/lifecycle concerns on top. Patterns from the standalone matrixscan-count-net-android / matrixscan-count-net-ios skills do not always apply unchanged — and the MAUI BarcodeCountView is not wired the way the non-MAUI native views are.

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.

MAUI-specific gotchas worth flagging (and the places people get it wrong by pattern-matching from MatrixScan Batch, SparkScan, or the native Android/iOS Count skills):

  • This skill targets MAUI apps with <UseMaui>true</UseMaui>. For non-MAUI .NET projects, use matrixscan-count-net-android (for net*-android) or matrixscan-count-net-ios (for net*-ios) instead — there the view is hosted natively (added to a FrameLayout / a UIView), which is completely different from the MAUI XAML control.
  • The MAUI builder chain for BarcodeCount is .UseScanditCore().UseScanditBarcode(configure => configure.AddBarcodeCountView()). UseScanditCore takes no lambda; UseScanditBarcode does take a lambda with AddBarcodeCountView() inside it. This is the same shape as SparkScan (AddSparkScanView) and the opposite of the BarcodeBatch / BarcodeCapture chain, which is .UseScanditCore(c => c.AddDataCaptureView()).UseScanditBarcode(). Do not write AddDataCaptureView() for BarcodeCount — it has its own pre-built MAUI handler and does not use the generic <scandit:DataCaptureView>.
  • XAML namespace is clr-namespace:Scandit.DataCapture.Barcode.Count.UI.Maui;assembly=ScanditBarcodeCaptureMaui. Note assembly=ScanditBarcodeCaptureMaui (no dots) — the NuGet package is Scandit.DataCapture.Barcode.Maui but the assembly it produces is ScanditBarcodeCaptureMaui. The control is <scandit:BarcodeCountView>, distinct from SparkScan's <scandit:SparkScanView> and from the generic <scandit:DataCaptureView>.
  • <scandit:BarcodeCountView> requires two bound properties: DataCaptureContext and BarcodeCount. Both are OneTime bindable properties — bind them to view-model properties (DataCaptureContext="{Binding DataCaptureContext}", BarcodeCount="{Binding BarcodeCount}"). Without both, the preview is black and counting never starts. Setting x:Name alone does not wire them.
  • The view-style property is ViewStyle, not Style, and its default is Dot. In XAML write ViewStyle="Icon" (or ViewStyle="Dot"). Style is a stock MAUI VisualElement property and setting it does nothing for the counting UI. ViewStyle is OneTime — set it in XAML at creation, not later in code.
  • You manage the camera yourself — BarcodeCountView does NOT own it. This is the single biggest difference from SparkScan in MAUI (where the SparkScanView drives the camera through OnAppearing()/OnDisappearing()). For BarcodeCount you must: Camera.GetDefaultCamera(BarcodeCount.RecommendedCameraSettings), dataCaptureContext.SetFrameSourceAsync(camera), and toggle it with camera.SwitchToDesiredStateAsync(FrameSourceState.On/Off) from the page's OnAppearing / OnDisappearing. The MAUI BarcodeCountView has no OnAppearing()/OnDisappearing()/StartScanning() methods — do not call them (those are SparkScanView's).
  • barcodeCount.Enabled (get/set bool) must be true for frames to be processed. Set it true when resuming and (optionally) false when pausing.
  • BarcodeCount is created with a FACTORY, not new: BarcodeCount.Create(dataCaptureContext, settings) (there is also a BarcodeCount.Create(settings) overload with no context). new BarcodeCount(...) is a compile error — the constructor is private. BarcodeCountSettings does use a plain new BarcodeCountSettings().
  • The List / Exit / SingleScan button events are on the MAUI BarcodeCountView, but they only fire after the native handler is attached. Subscribe to them inside the dataCaptureView.HandlerChanged (or HandlerReady) handler, exactly as the official MatrixScanCountSimpleSample does — subscribing in the constructor before the handler exists silently does nothing. The events are ListButtonTapped (ListButtonTappedEventArgs), ExitButtonTapped (ExitButtonTappedEventArgs), SingleScanButtonTapped (SingleScanButtonTappedEventArgs); their event-arg types live in the non-MAUI namespace Scandit.DataCapture.Barcode.Count.UI.
  • IBarcodeCountListener has THREE methods: OnScan(BarcodeCount, BarcodeCountSession, IFrameData), OnObservationStarted(BarcodeCount), OnObservationStopped(BarcodeCount). The idiomatic C# alternative is the barcodeCount.Scanned event (EventHandler<BarcodeCountEventArgs>), which corresponds to OnScan only. The official MAUI sample wires the Scanned event on the view model.
  • Scanned / OnScan fires once per scan phase, on a background thread. Copy the barcodes you need out of the session immediately (session.RecognizedBarcodes.ToList() / [.. session.RecognizedBarcodes]); the BarcodeCountSession is not valid outside the callback. Dispatch UI updates via MainThread.BeginInvokeOnMainThread(...) — not RunOnUiThread (Android-only) and not DispatchQueue.MainQueue (iOS-only).
  • BarcodeCountSession exposes RecognizedBarcodes and AdditionalBarcodes as IList<Barcode> — plain decoded barcodes, not tracked-barcode deltas. There is no AddedTrackedBarcodes / RemovedTrackedBarcodes on this session (that's the Batch session). Also FrameSequenceId, Reset(), and GetSpatialMap().
  • BarcodeCountFeedback uses Success and Failure (Core.Common.Feedback.Feedback). The empty constructor new BarcodeCountFeedback() is silent; the static BarcodeCountFeedback.DefaultFeedback (a property, not a method) restores defaults.
  • Symbology names are C# PascalCase: Symbology.Ean13Upca, Symbology.Ean8, Symbology.Upce, Symbology.Code128, Symbology.Code39, Symbology.Qr, Symbology.DataMatrix, Symbology.InterleavedTwoOfFive. They are not the Kotlin underscore style (EAN13_UPCA) or Swift camelCase (ean13UPCA).
  • Capture list (receiving) uses factories: BarcodeCountCaptureList.Create(listener, IList<TargetBarcode>) and TargetBarcode.Create(data, quantity). Apply it with barcodeCount.SetBarcodeCountCaptureList(list). The listener IBarcodeCountCaptureListListener has OnObservationStarted(), OnObservationStopped(), OnCaptureListSessionUpdated(session), OnCaptureListCompleted(session).
  • No manual ScanditCaptureCore.Initialize() / ScanditBarcodeCapture.Initialize() call is needed. The MAUI builder extensions (UseScanditCore / UseScanditBarcode) perform the SDK 8.0+ initialization themselves. This is different from the non-MAUI matrixscan-count-net-android / matrixscan-count-net-ios skills, which require manual initialization for SDK 8.0+. In a MAUI app the MainApplication / AppDelegate only forward to MauiProgram.CreateMauiApp() — leave them as the MAUI template generates them.
  • Required NuGet packages: Scandit.DataCapture.Core, Scandit.DataCapture.Core.Maui, Scandit.DataCapture.Barcode, Scandit.DataCapture.Barcode.Maui. All four — Core/Barcode provide the platform bindings, Core.Maui/Barcode.Maui provide the MAUI builder extensions and handlers. Do not guess the version — fetch the latest stable from https://www.nuget.org/packages/Scandit.DataCapture.Barcode.Maui/ via WebFetch and use the same version for all four.
  • Android SupportedOSPlatformVersion must be ≥ 24. The MAUI template defaults to 21, which is below Scandit's Android AAR minimum and fails the build with uses-sdk:minSdkVersion 21 cannot be smaller than version 24 declared in library. Bump the .csproj value to 24.0 (or higher). iOS minimum is 15.0 (matches the MAUI template default).
  • iOS NSCameraUsageDescription in Platforms/iOS/Info.plist is mandatory — without it the app crashes on first camera access. On Android, MAUI's Permissions.Camera adds android.permission.CAMERA automatically when requested at build time (or add it explicitly to Platforms/Android/AndroidManifest.xml).

Intent Routing

Based on the user's request, load the appropriate reference file before responding:

  • Integrating BarcodeCount from scratch, registering the builder chain, declaring the <scandit:BarcodeCountView>, configuring settings, wiring the camera lifecycle, handling scan results, storing scanned barcodes, capture/receiving lists, the spatial map, customizing feedback, List/Exit/SingleScan taps, brushes, status mode, the not-in-list action, or diagnosing a black preview (e.g. "add MatrixScan Count to my MAUI app", "count barcodes in .NET MAUI", "store the scanned barcodes when the list button is tapped", "check scans against an expected list in MAUI", "make the beep silent", "use the Icon style", "my MAUI count preview is black") → read references/integration.md and follow the instructions there.
  • Migrating or upgrading an existing MatrixScan Count MAUI integration (e.g. "upgrade my MAUI BarcodeCount app from v7 to v8", "bump the Scandit .NET MAUI SDK to v8", "what changed between SDK versions for BarcodeCount in MAUI") → read references/migration.md and follow the instructions there.

API Usage Policy

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:

  1. 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.
  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.

Licence key

Scanning needs a Scandit licence key. For this skill the licence product is native and the licence platforms are ios and android.

Work through these in order — never block the user on MCP:

  1. The Scandit MCP server is connected — call ensure_scanner_setup with product native and platforms ios and android, app_identifier (the app's bundle or application id; for web, its production domain, never localhost) and env_var SCANDIT_LICENSE_KEY. Do not run the command it returns. Then call get_license_key with the key's id, from that result or from list_license_keys; if list_license_keys shows the key is not a trial, ask the user before fetching it. Show at most a masked preview in chat; never print a full key.

  2. It is not connected — tell the user once that they can connect the remote Scandit MCP server, https://ssl.scandit.com/mcp, in their MCP client, then continue from step 1. Do not edit MCP client configuration yourself.

    Authentication is browser-based, so it is not supported headless or in CI. The server provisions trial keys only; it never creates, revokes, or modifies production licences.

  3. The user declines, or has no MCP client — they generate a key themselves at https://ssl.scandit.com (no account yet: https://ssl.scandit.com/dashboard/sign-up?p=test) and paste it in.

Then put the key into the code: write it into the licence-key call in place of the placeholder — the key get_license_key returned, or the one the user pastes or gives you — still showing only a masked preview in chat. Do not search the project, its files or the environment for a key.

References

Direct users to the right resource based on their question:

TopicResource
Get StartedGet Started (.NET MAUI)
Advanced topics (capture list, status mode, brushes, toolbar, hardware trigger)Advanced (.NET Android) · (.NET iOS) — MAUI shares both TFMs
Migration between major SDK versionsAndroid: 6 → 7 · 7 → 8 · iOS: 6 → 7 · 7 → 8
Full API referenceBarcodeCount API (.NET Android) · BarcodeCount API (.NET iOS)

MAUI inherits the per-TFM .NET API. There is no separate "dotnet.maui" doc filter — pick the .NET Android or .NET iOS API reference depending on which TFM you're debugging against. The MAUI-specific surface is just the XAML control (<scandit:BarcodeCountView>), the builder extensions, and the HandlerChanged wiring. The cross-platform BarcodeCount / BarcodeCountSettings / session / capture-list / feedback APIs are identical between the two TFMs.

API surface this skill covers

All classes documented with :available: dotnet.android and / or :available: dotnet.ios in the official RST docs (docs/source/barcode-capture/api/barcode-count*.rst and api/ui/barcode-count-*.rst) are addressed in references/integration.md, plus the MAUI-specific surface:

  • Cross-platform Count API (same as the per-TFM skills):

    • BarcodeCount — static Create(DataCaptureContext?, BarcodeCountSettings) / Create(BarcodeCountSettings), Context (get), Feedback (get/set), Enabled (get/set), static RecommendedCameraSettings, ApplySettingsAsync(BarcodeCountSettings) → Task, AddListener / RemoveListener(IBarcodeCountListener), Reset(), StartScanningPhase(), EndScanningPhase(), SetBarcodeCountCaptureList(BarcodeCountCaptureList), SetAdditionalBarcodes(IList<Barcode>), ClearAdditionalBarcodes(), event EventHandler<BarcodeCountEventArgs> Scanned, Dispose().
    • BarcodeCountSettings — new BarcodeCountSettings(), EnableSymbology(Symbology, bool), EnableSymbologies(ICollection<Symbology>), GetSymbologySettings(Symbology), EnabledSymbologies (get), FilterSettings (get), ExpectsOnlyUniqueBarcodes (get/set), DisableModeWhenCaptureListCompleted (get/set), MappingEnabled (get/set), property bag.
    • IBarcodeCountListener — OnScan, OnObservationStarted, OnObservationStopped.
    • BarcodeCountSession — RecognizedBarcodes (IList<Barcode>), AdditionalBarcodes (IList<Barcode>), FrameSequenceId (long), Reset(), GetSpatialMap() / GetSpatialMap(int, int).
    • BarcodeCountEventArgs — BarcodeCount, Session, FrameData.
    • Capture list (receiving): BarcodeCountCaptureList.Create(IBarcodeCountCaptureListListener, IList<TargetBarcode>); TargetBarcode.Create(string, int); IBarcodeCountCaptureListListener; BarcodeCountCaptureListSession (CorrectBarcodes, WrongBarcodes, MissingBarcodes, AdditionalBarcodes, AcceptedBarcodes, RejectedBarcodes).
    • Spatial map: BarcodeSpatialGrid, BarcodeSpatialGridElement.
    • BarcodeCountFeedback — new BarcodeCountFeedback() (silent), static DefaultFeedback, Success / Failure.
    • Status mode: IBarcodeCountStatusProvider, IBarcodeCountStatusProviderCallback, BarcodeCountStatus enum, BarcodeCountStatusItem.Create(...), BarcodeCountStatusResultSuccess/Error/Abort.Create(...).
    • TrackedBarcode (Scandit.DataCapture.Barcode.Batch.Data) — used by IBarcodeCountViewListener, the status API, and the capture-list session.
  • MAUI-only surface (assembly ScanditBarcodeCaptureMaui, namespace Scandit.DataCapture.Barcode.Count.UI.Maui):

    • MauiAppBuilderExtensions.UseScanditCore(this MauiAppBuilder) — no lambda needed for a Count-only app.
    • MauiAppBuilderExtensions.UseScanditBarcode(this MauiAppBuilder, Action<ConfigureBarcode>) — the lambda exposes AddBarcodeCountView().
    • Scandit.DataCapture.Barcode.Count.UI.Maui.BarcodeCountView — the MAUI View control. Bindable properties: DataCaptureContext (OneTime), BarcodeCount (OneTime), ViewStyle (OneTime, default Dot), plus ShouldShowListButton / ShouldShowExitButton / ShouldShowShutterButton / ShouldShowFloatingShutterButton / ShouldShowSingleScanButton / ShouldShowClearHighlightsButton / ShouldShowStatusModeButton / ShouldShowUserGuidanceView / ShouldShowHints / ShouldShowToolbar / ShouldShowScanAreaGuides / ShouldShowListProgressBar / ShouldShowTorchControl, ShouldDisableModeOnExitButtonTapped, TapToUncountEnabled, TorchControlPosition (Anchor), RecognizedBrush / NotInListBrush / AcceptedBrush / RejectedBrush (and static Default*Brush), and a large set of accessibility / button-text bindable strings. Non-bindable members: Listener (IBarcodeCountViewListener?), BarcodeNotInListActionSettings (get), SetToolbarSettings, ClearHighlights(), SetStatusProvider, SetBrushForRecognizedBarcode/*NotInList/*Accepted/*Rejected, EnableHardwareTrigger(int?) + static HardwareTriggerSupported (Android only), HardwareTriggerEnabled (iOS only), events ExitButtonTapped / ListButtonTapped / SingleScanButtonTapped, HandlerReady / ClearPendingCommands().
    • BarcodeCountViewStyle enum — Icon, Dot.
    • Event args (namespace Scandit.DataCapture.Barcode.Count.UI): ExitButtonTappedEventArgs, ListButtonTappedEventArgs, SingleScanButtonTappedEventArgs.

Documented for other platforms but NOT in the .NET binding — do not use

  • BarcodeCountMappingFlowSettings / mapping-flow configuration — not surfaced in the .NET binding. Mapping in .NET is limited to BarcodeCountSettings.MappingEnabled + BarcodeCountSession.GetSpatialMap().
  • BarcodeCountSessionSnapshot — no .NET equivalent.

附带文件

技能加载后,模型会按需读取这些文件。它们仅作为可读文件提供,绝不会被执行。

常见问题

Matrixscan Count Net Maui AI 技能有什么作用?

MatrixScan Count (BarcodeCount) in .NET MAUI projects (<UseMaui>true</UseMaui>, Scandit.DataCapture.Barcode.Maui NuGet) — counting/receiving workflows with the BarcodeCountView XAML control and capture/receiving lists. For non-MAUI .NET use matrixscan-count-net-android or matrixscan-count-net-ios. Use for integration, XAML and builder-chain setup, result handling, UI customization, SDK version migration, or troubleshooting counting workflows.

为什么在 TypingMind 中使用 Matrixscan Count Net Maui?

因为您只需安装一次,就能搭配任何模型使用。Matrixscan Count Net Maui 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Matrixscan Count Net Maui?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/Scandit/skills/tree/dist/skills/matrixscan-count-net-maui。TypingMind 会读取其中的 SKILL.md,打包相关文件,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Matrixscan Count Net Maui?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Matrixscan Count Net Maui 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Matrixscan Count Net Maui 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Matrixscan Count Net Maui AI 技能免费吗?

是的。Scandit 已在 GitHub 上根据 Apache-2.0 许可证发布了该技能。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇