Logo : Sparkscan Net Maui

Sparkscan Net Maui

Organisation
Scandit
sparkscan-net-maui

SparkScan single-barcode scanning with the pre-built `SparkScanView` UI in .NET MAUI projects (`<UseMaui>true</UseMaui>`, `Scandit.DataCapture.Barcode.Maui` NuGet) — for non-MAUI .NET projects use sparkscan-net-android or sparkscan-net-ios. Use for integration, scan settings, result handling, feedback and UI customization, SDK version migration (v6→v7→v8), replacing third-party MAUI scanners (ZXing.Net.Maui), or troubleshooting.

Présentation

ÉditeurScandit
Dépôtskills
Nom de la compétencesparkscan-net-maui
Étoiles
21
Forks
2
Fichiers inclus
3
LicenceApache-2.0
Liens
  • Instructions en Markdown

    Un fichier SKILL.md que le modèle charge à la demande : il ne consomme donc des tokens que lorsqu’une demande correspond réellement à la compétence.

  • Compatible avec tous les LLM

    Les compétences IA sont rédigées en Markdown et non sous forme de code propre à un fournisseur. Elles fonctionnent donc avec GPT, Claude, Gemini, Grok ou un modèle local.

  • Fichiers inclus : 3

    Des scripts, des gabarits et des références que le modèle peut consulter pendant son travail. Les fichiers sont en lecture seule et ne sont jamais exécutés.

  • Open source

    Publiée par Scandit sur GitHub. Consultez les sources avant de l’installer.

Installation

Installez la compétence IA Sparkscan Net Maui dans TypingMind pour l’utiliser avec n’importe quel LLM, ou ajoutez-la à un autre agent capable de lire SKILL.md.

1

Installer dans TypingMind

TypingMind installe une compétence directement depuis son dossier GitHub : l’application lit SKILL.md, regroupe les fichiers de ressources et enregistre le tout localement.

  1. Ouvrez l’application et accédez à Plugins → Compétences.
  2. Choisissez « Installer depuis GitHub ».
  3. Copiez l’URL ci-dessous, qui pointe vers le dossier de la compétence, puis collez-la et confirmez.
    https://github.com/Scandit/skills/tree/dist/skills/sparkscan-net-maui
  4. Activez la compétence dans chaque discussion où vous souhaitez pouvoir l’utiliser.
Plugins → Compétences → Ajouter une compétence → Via une URL GitHub, puis collez l’URL du dossier et appuyez sur Continuer.
2

Installer dans un autre agent

Tout agent capable de lire le format Agent Skills peut utiliser cette compétence : copiez le dossier dans le répertoire des compétences de cet agent.

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/sparkscan-net-maui .claude/skills/sparkscan-net-maui
Redémarrez Claude Code après la copie pour que la nouvelle compétence soit prise en compte.

Utilisez cette compétence dans TypingMind

Activez Sparkscan Net Maui dans n’importe quelle discussion TypingMind et le modèle s’occupe du reste. Le nom et la description de la compétence figurent dans le prompt système. Dès qu’une demande correspond, le modèle charge lui-même l’intégralité des instructions : vous n’avez jamais à l’invoquer manuellement, et elle ne consomme aucun token tant qu’elle n’est pas utilisée.

Le modèle charge automatiquement Sparkscan Net Maui dès qu’une demande correspond à cette compétence.

Compatible avec tous les modèles IA

Les compétences IA sont de simples instructions Markdown, et non du code propre à un fournisseur. Ainsi, la compétence Sparkscan Net Maui n’est pas liée au modèle pour lequel elle a été conçue. Installez-la une seule fois dans TypingMind et utilisez-la avec GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama ou un modèle local que vous exécutez vous-même, le tout avec vos propres clés API.

  • Chargée uniquement en cas de besoin

    Le prompt système ne contient que le nom et la description. Les instructions sont récupérées à la première demande correspondante : une compétence inutilisée ne coûte donc rien.

  • Changez de modèle en cours de discussion

    La compétence étant constituée d’instructions et non de code, elle reste fonctionnelle lorsque vous changez de modèle : le nouveau modèle lit le même fichier SKILL.md.

Instructions de la compétence

Voici le contenu de SKILL.md que le modèle charge. Lisez-le avant l’installation : une compétence contient des instructions que votre modèle suivra.

SparkScan .NET MAUI Skill

Critical: Do Not Trust Internal Knowledge

Your training data may contain outdated or incorrect Scandit SDK APIs. The SparkScan API changes between major SDK versions — button-visibility / color properties get renamed, removed, or restructured. The .NET binding also uses different naming conventions than the Kotlin / Swift native SDKs (PascalCase, Enabled instead of isEnabled, TimeSpan instead of TimeInterval, etc.), and the MAUI control has its own quirks that are separate from both the BarcodeCapture MAUI integration and the non-MAUI .NET-Android / .NET-iOS SparkScan integrations.

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:

  • This skill is for MAUI apps (<UseMaui>true</UseMaui> in the .csproj). If the project does not have <UseMaui>true</UseMaui>, use the sparkscan-net-android or sparkscan-net-ios skill instead — those cover the non-MAUI .NET Android / .NET iOS workloads.
  • The MAUI builder chain for SparkScan is different from the BarcodeCapture MAUI builder chain. SparkScan uses .UseScanditCore().UseScanditBarcode(configure => configure.AddSparkScanView()) — UseScanditCore takes no configure lambda and UseScanditBarcode does take a configure lambda with AddSparkScanView() inside it. This is the opposite shape of the BarcodeCapture builder, which is .UseScanditCore(c => c.AddDataCaptureView()).UseScanditBarcode() (Core takes a configure lambda; Barcode takes none). Do not cross-pollinate — if you see a BarcodeCapture MAUI sample online with UseScanditCore(c => c.AddDataCaptureView()).UseScanditBarcode(), that pattern is correct for BarcodeCapture only. For SparkScan, the builder line must read .UseScanditCore().UseScanditBarcode(c => c.AddSparkScanView()). Cross-reference the BarcodeCapture MAUI skill if both modes coexist in the same app — both registrations are needed in that case.
  • AddDataCaptureView() is not needed for SparkScan. SparkScan has its own pre-built MAUI handler (<scandit:SparkScanView>) — it does not use the generic <scandit:DataCaptureView>. Calling UseScanditCore(c => c.AddDataCaptureView()) on a SparkScan-only project is harmless but unnecessary; the simpler UseScanditCore() is what the official sample uses.
  • XAML namespace is clr-namespace:Scandit.DataCapture.Barcode.Spark.UI.Maui;assembly=ScanditBarcodeCaptureMaui. Note: assembly=ScanditBarcodeCaptureMaui (no dots in the assembly name) — the NuGet package is Scandit.DataCapture.Barcode.Maui but the assembly it produces is ScanditBarcodeCaptureMaui. Easy to get wrong if you just copy the package id.
  • <scandit:SparkScanView> requires three bindable properties: DataCaptureContext, SparkScan, SparkScanViewSettings. Without all three bound, the preview is black and scanning never starts. There is also an optional Feedback bindable property for the ISparkScanFeedbackDelegate. The MAUI control is a pre-built View, not the generic <scandit:DataCaptureView> — for SparkScan there is no separate camera preview, overlay, or context-view wiring to do.
  • MAUI lifecycle for the SparkScan control is OnAppearing() / OnDisappearing() — called on the control, not just the page. Forward the page's OnAppearing / OnDisappearing into this.SparkScanView.OnAppearing() / this.SparkScanView.OnDisappearing(). These are MAUI-specific methods on the SparkScan MAUI control — they don't exist on the non-MAUI dotnet.android / dotnet.ios bindings (which use OnPause/OnResume and PrepareScanning/StopScanning respectively).
  • SparkScan and SparkScanSettings use plain new constructors, not Create(...) factories. This is unusual compared to the rest of the .NET API (BarcodeCapture.Create(...), BarcodeCaptureSettings.Create()). The canonical pattern is var settings = new SparkScanSettings(); var sparkScan = new SparkScan(settings); — writing SparkScan.Create(...) or SparkScanSettings.Create() is a compile error. DataCaptureContext.ForLicenseKey(key) still uses the factory form (it lives in Core, not Spark).
  • The .NET ISparkScanListener has only two methods: OnBarcodeScanned(SparkScan, SparkScanSession, IFrameData?) and OnSessionUpdated(SparkScan, SparkScanSession, IFrameData?). There are no OnObservationStarted / OnObservationStopped methods (the way IBarcodeCaptureListener has them).
  • Prefer the event API (sparkScan.BarcodeScanned += handler) over the listener interface in idiomatic C#. The official MAUI SparkScan sample wires the event on the view model. The handler receives SparkScanEventArgs with Session, FrameData, and SparkScan.
  • Symbology names are C# PascalCase: Symbology.Ean13Upca, Symbology.Ean8, Symbology.Code128, Symbology.InterleavedTwoOfFive, Symbology.Qr, Symbology.DataMatrix.
  • The capture mode's enabled property is sparkScan.Enabled (not IsEnabled).
  • CodeDuplicateFilter, TriggerButtonCollapseTimeout, InactiveStateTimeout, SparkScanBarcodeErrorFeedback.resumeCapturingDelay are all TimeSpan — not TimeInterval. SparkScanSettings does not expose CodeDuplicate.DefaultDuplicateFilter / ReportDataAndSymbologyOnlyOnce sentinels — those live on BarcodeCaptureSettings. For SparkScan, set the TimeSpan directly.
  • Feedback is delivered through ISparkScanFeedbackDelegate.GetFeedbackForBarcode(Barcode) and assigned with this.SparkScanView.Feedback = this from the page code-behind (where this implements ISparkScanFeedbackDelegate). Returning null from the delegate falls back to the default success feedback.
    • Success feedback: new SparkScanBarcodeSuccessFeedback() (default), or pass (Color), (Color, Brush), or (Color, Brush, Feedback?).
    • Error feedback: new SparkScanBarcodeErrorFeedback(message: "...", resumeCapturingDelay: TimeSpan.FromSeconds(60)). The view shows the error message, the trigger button shows an error state, and scanning resumes after the delay.
  • GetFeedbackForBarcode(Barcode) is invoked on a background thread. Build the feedback objects once (in the page constructor or OnAppearing) and return cached instances.
  • SparkScan.BarcodeScanned (and ISparkScanListener.OnBarcodeScanned) also run on a background thread. Dispatch UI updates via MainThread.BeginInvokeOnMainThread(() => { … }). MainThread.StartTimer does not exist — StartTimer is on IDispatcher (Dispatcher.StartTimer(...) / Application.Current.Dispatcher.StartTimer(...)).
  • Four NuGet packages are required: Scandit.DataCapture.Core, Scandit.DataCapture.Core.Maui, Scandit.DataCapture.Barcode, Scandit.DataCapture.Barcode.Maui. All four must be pinned to the same version. Fetch the latest stable version from https://www.nuget.org/packages/Scandit.DataCapture.Barcode.Maui/ — skip -beta / -preview / -rc suffixes. Versions from training data are stale.
  • Android SupportedOSPlatformVersion must be ≥ 24.0 — the MAUI template's default is 21.0, which fails the build because Scandit's Android AAR has minSdkVersion=24. 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. Android relies on Permissions.Camera (MAUI adds the manifest entry automatically when the permission is requested at build time) or you can add <uses-permission android:name="android.permission.CAMERA" /> to Platforms/Android/AndroidManifest.xml explicitly.
  • The MAUI sample does not call ScanditCaptureCore.Initialize() / ScanditBarcodeCapture.Initialize() directly — UseScanditCore() and UseScanditBarcode(...) invoke them as part of the builder chain. Do not add a separate Initialize() call in MainApplication.cs / AppDelegate.cs on top of the builder — it is redundant in MAUI.
  • MAUI single-file Platforms/Android/MainApplication.cs and Platforms/iOS/AppDelegate.cs are the standard MAUI shims that call MauiProgram.CreateMauiApp(). Do not override their OnCreate / FinishedLaunching with manual Scandit initialization — that's a non-MAUI pattern.
  • SparkScanScanningModeDefault and SparkScanScanningModeTarget are constructed with new, both taking (SparkScanScanningBehavior, SparkScanPreviewBehavior). There is no parameterless constructor.
  • View state is exposed via SparkScanView.ViewStateChanged (event of EventHandler<SparkScanViewStateEventArgs>) — use the events BarcodeCountButtonTapped, BarcodeFindButtonTapped, LabelCaptureButtonTapped, and ViewStateChanged.
  • Hardware trigger: SparkScanViewSettings.HardwareTriggerEnabled is available cross-platform in MAUI but only has effect on Android. HardwareTriggerKeyCode is Android-only in the .NET binding — it is wrapped in #if __ANDROID__ and not visible to cross-platform MAUI code. For cross-platform code, only set HardwareTriggerEnabled and rely on the default key code.

Intent Routing

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

  • Integrating SparkScan from scratch, configuring settings, customizing feedback, customizing the SparkScanView appearance, handling scans, MVVM wiring, or doing async work after a scan (e.g. "add SparkScan to my MAUI app", "set up barcode scanning in MAUI", "how do I use SparkScan in net-maui", "reject barcodes with error feedback", "hide the torch button", "show a custom toast on scan", "use target mode", "bind SparkScan to my view model") → read references/integration.md and follow the instructions there.
  • Migrating or upgrading an existing SparkScan MAUI integration (e.g. "upgrade from v6 to v7", "migrate my MAUI SparkScan", "bump the Scandit .NET SDK to v8", "what changed between SDK versions") → read references/migration.md and follow the instructions there.
  • Replacing a third-party barcode scanner with SparkScan in MAUI (e.g. "replace my ZXing.Net.Maui scanner with SparkScan", "migrate from BarcodeScanning.Native.Maui to Scandit", "switch from [library] to SparkScan in MAUI") → read references/third-party-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 for both TFMs), 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 (custom feedback, scanning modes, UI customization, toast messages)Advanced Configurations (.NET Android) · (.NET iOS) — MAUI shares both TFMs
Migration between major SDK versionsAndroid: 6 → 7 · 7 → 8 · iOS: 6 → 7 · 7 → 8
Full API referenceSparkScan API (.NET Android) · SparkScan 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, the builder extensions, and the OnAppearing/OnDisappearing lifecycle methods.

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/spark-scan*.rst and api/ui/spark-scan-*.rst) are addressed in references/integration.md, plus the MAUI-specific surface:

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

    • SparkScan — new SparkScan(), new SparkScan(SparkScanSettings), Enabled, ApplySettingsAsync, AddListener / RemoveListener, events BarcodeScanned / SessionUpdated, SparkScanLicenseInfo, Dispose.
    • SparkScanSettings — new, symbology APIs, CodeDuplicateFilter, BatterySaving, ScanIntention, property bag.
    • SparkScanSession — NewlyRecognizedBarcode, FrameSequenceId, Reset().
    • SparkScanEventArgs — SparkScan, Session, FrameData.
    • ISparkScanListener — OnBarcodeScanned, OnSessionUpdated.
    • SparkScanLicenseInfo — LicensedSymbologies.
    • Feedback: SparkScanBarcodeFeedback, SparkScanBarcodeSuccessFeedback, SparkScanBarcodeErrorFeedback(message, resumeCapturingDelay, …), ISparkScanFeedbackDelegate.GetFeedbackForBarcode(Barcode).
    • SparkScanViewSettings — TriggerButtonCollapseTimeout, DefaultScanningMode, DefaultTorchState, SoundEnabled, HapticEnabled, HoldToScanEnabled, HardwareTriggerEnabled, ZoomFactorOut, ZoomFactorIn, ToastSettings, VisualFeedbackEnabled, InactiveStateTimeout, DefaultCameraPosition, DefaultMiniPreviewSize, SmartSelectionCandidateBrush.
    • SparkScanToastSettings — ToastEnabled, ToastBackgroundColor, ToastTextColor, plus message strings.
    • SparkScanViewState enum, SparkScanViewEventArgs, SparkScanViewStateEventArgs.
    • SparkScanMiniPreviewSize, SparkScanPreviewBehavior, SparkScanScanningBehavior enums.
    • ISparkScanScanningMode, SparkScanScanningModeDefault, SparkScanScanningModeTarget.
  • MAUI-only surface (assembly ScanditBarcodeCaptureMaui):

    • Scandit.DataCapture.Barcode.Maui.MauiAppBuilderExtensions.UseScanditBarcode(this MauiAppBuilder, Action<ConfigureBarcode>) — the configure lambda exposes AddSparkScanView().
    • Scandit.DataCapture.Core.Maui.MauiAppBuilderExtensions.UseScanditCore(this MauiAppBuilder) — no configure lambda is needed for a SparkScan-only app.
    • Scandit.DataCapture.Barcode.Spark.UI.Maui.SparkScanView — the MAUI View control with bindable properties DataCaptureContext, SparkScan, SparkScanViewSettings, Feedback, plus instance methods OnAppearing(), OnDisappearing(), StartScanning(), PauseScanning(), ShowToast(string), and the full set of cross-platform button-visibility / color / image properties and events inherited from the underlying SparkScan view.

Fichiers inclus

Le modèle lit ces fichiers à la demande lorsque la compétence est chargée. Ils sont accessibles en lecture et ne sont jamais exécutés.

Foire aux questions

À quoi sert la compétence IA Sparkscan Net Maui ?

SparkScan single-barcode scanning with the pre-built `SparkScanView` UI in .NET MAUI projects (`<UseMaui>true</UseMaui>`, `Scandit.DataCapture.Barcode.Maui` NuGet) — for non-MAUI .NET projects use sparkscan-net-android or sparkscan-net-ios. Use for integration, scan settings, result handling, feedback and UI customization, SDK version migration (v6→v7→v8), replacing third-party MAUI scanners (ZXing.Net.Maui), or troubleshooting.

Pourquoi utiliser Sparkscan Net Maui sur TypingMind ?

Parce que vous l’installez une seule fois pour l’utiliser avec n’importe quel modèle. Sparkscan Net Maui se compose de simples instructions en Markdown plutôt que de code propre à un fournisseur. La même compétence fonctionne donc avec GPT-5, Claude, Gemini, Grok ou un modèle local, et vous pouvez changer de modèle en cours de discussion sans perturber son fonctionnement. TypingMind utilise vos propres clés API : vous payez donc directement les fournisseurs plutôt qu’un abonnement par siège, et vos compétences et discussions restent dans votre propre espace de stockage.

Comment installer Sparkscan Net Maui dans TypingMind ?

Dans TypingMind, ouvrez Plugins → Compétences → Installer depuis GitHub et collez https://github.com/Scandit/skills/tree/dist/skills/sparkscan-net-maui. TypingMind lit le fichier SKILL.md, regroupe les fichiers associés et installe le tout sous forme de compétence que vous pouvez activer pour chaque discussion.

Quels modèles d’IA peuvent utiliser Sparkscan Net Maui ?

N’importe quel modèle que vous connectez dans TypingMind. Les compétences IA sont de simples instructions en Markdown, et non du code propre à un fournisseur. GPT, Claude, Gemini, Grok et les modèles locaux peuvent donc tous charger cette compétence lorsqu’une demande lui correspond.

Combien de modèles d’IA puis-je utiliser avec Sparkscan Net Maui ?

Autant que vous le souhaitez. Vous pouvez utiliser Sparkscan Net Maui avec tout modèle qui prend en charge les compétences : GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama et bien d’autres, le tout dans TypingMind avec vos propres clés API.

La compétence IA Sparkscan Net Maui est-elle gratuite ?

Oui. Cette compétence est publiée sur GitHub par Scandit sous licence Apache-2.0. Vous ne payez que votre propre fournisseur d’IA pour les tokens utilisés.

Que sont les compétences IA ?

Une compétence IA est un ensemble d’instructions réutilisables qui apprend à un modèle d’IA à accomplir une tâche précise. Elle suit le format ouvert Agent Skills : un fichier SKILL.md contenant un nom et une description, ainsi que les éventuels scripts, gabarits ou fichiers de référence dont le modèle peut avoir besoin. Le modèle ne lit les instructions que lorsque votre demande correspond à la compétence. Une compétence installée ne coûte donc rien tant qu’elle n’est pas utilisée.

En quoi les compétences IA diffèrent-elles des plugins ou des serveurs MCP ?

Un plugin ou un serveur MCP fournit au modèle de nouveaux outils à appeler : du code qui s’exécute quelque part et renvoie un résultat. Une compétence IA lui apporte plutôt des connaissances et une méthode : comment aborder une tâche, quelles étapes suivre et à quoi ressemble un bon résultat. Les compétences sont de simples instructions en Markdown. Elles ne nécessitent donc ni serveur, ni clé API, ni environnement d’exécution, et fonctionnent avec n’importe quel modèle.

Tout voir

Créez votre propre espace de travail IA dès maintenant

Abonnez-vous à notre newsletter pour être informé des nouvelles fonctionnalités et des prochains cadeaux à gagner 👇