/scandit-sdk:matrixscan-count-net-mauifrom scandit-sdk
Integrates Scandit MatrixScan Count (barcode counting/receiving) in .NET MAUI apps using BarcodeCountView XAML control. Covers MAUI-specific setup, builder-chain configuration, result handling, UI customization, and SDK migration.
Ships in scandit-sdk. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
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):
<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..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>.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.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.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().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.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).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).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.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.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).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).Based on the user's request, load the appropriate reference file before responding:
<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.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:
URL structures can vary (e.g. api/ui/ subdirectory) and guessing will lead to 404s.
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:
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.
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.
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.
Direct users to the right resource based on their question:
| Topic | Resource |
|---|---|
| Get Started | Get 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 versions | Android: 6 → 7 · 7 → 8 · iOS: 6 → 7 · 7 → 8 |
| Full API reference | BarcodeCount 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 theHandlerChangedwiring. The cross-platformBarcodeCount/BarcodeCountSettings/ session / capture-list / feedback APIs are identical between the two TFMs.
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.BarcodeCountCaptureList.Create(IBarcodeCountCaptureListListener, IList<TargetBarcode>); TargetBarcode.Create(string, int); IBarcodeCountCaptureListListener; BarcodeCountCaptureListSession (CorrectBarcodes, WrongBarcodes, MissingBarcodes, AdditionalBarcodes, AcceptedBarcodes, RejectedBarcodes).BarcodeSpatialGrid, BarcodeSpatialGridElement.BarcodeCountFeedback — new BarcodeCountFeedback() (silent), static DefaultFeedback, Success / Failure.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.Scandit.DataCapture.Barcode.Count.UI): ExitButtonTappedEventArgs, ListButtonTappedEventArgs, SingleScanButtonTappedEventArgs.BarcodeCountMappingFlowSettings / mapping-flow configuration — not surfaced in the .NET binding. Mapping in .NET is limited to BarcodeCountSettings.MappingEnabled + BarcodeCountSession.GetSpatialMap().BarcodeCountSessionSnapshot — no .NET equivalent.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub scandit/skills --plugin scandit-sdk87 skills in this plugin
/barcode-capture-androidScandit Barcode Capture (`BarcodeCapture`) in native Android (Kotlin/Java) projects — the low-level, full-control single-barcode scanning mode (BarcodeCapture + DataCaptureView + overlay), without the pre-built SparkScan UI. Use for integration, symbology and scan settings, result handling, overlay customization, SDK version migration (v6→v7→v8), replacing third-party scanners (ZXing, ML Kit), or troubleshooting./barcode-capture-capacitorCapacitor — Scandit Barcode Capture (`BarcodeCapture`) in Capacitor (Ionic) hybrid apps via the Scandit Capacitor plugins (`ScanditCaptureCorePlugin`), the low-level, full-control single-barcode scanning mode (BarcodeCapture + DataCaptureView + BarcodeCaptureOverlay) without the pre-built SparkScan UI, not the browser-only web SDK. Use for integration, symbology settings, result handling, viewfinder and feedback customization, SDK version migration, replacing a third-party scanner (@capacitor-mlkit/barcode-scanning), or troubleshooting./barcode-capture-cordovaCordova — Scandit Barcode Capture (`BarcodeCapture`) in Apache Cordova hybrid apps via the `scandit-cordova-datacapture-*` plugins (global `window.Scandit`), the low-level, full-control single-barcode scanning mode (BarcodeCapture + DataCaptureView + BarcodeCaptureOverlay) without the pre-built SparkScan UI, not the browser-only web SDK. Use for integration, scan settings, result handling, overlay wiring, SDK version migration, replacing a third-party scanner (phonegap-plugin-barcodescanner), or troubleshooting.Other plugins' skills for the same job