sparkscan-net-ios

sparkscan-net-ios is a skill for Claude Code from Scandit/skills. It costs 107 tokens per session (4,144 once invoked), scanned A, original, Apache-2.0.

A guide for adding Scandit's SparkScan barcode-scanning interface to non-MAUI .NET iOS apps. It covers setup, scanning, results, feedback, lifecycle handling, and SDK version changes.

In plain words
What is it for?
Use it to integrate single-barcode scanning in a .NET iOS app, configure scanning, handle results, and customise feedback.
Why use it?
The non-MAUI iOS binding uses different names and constructors from MAUI and native Swift or Objective-C versions. Checking the matching references helps prevent incompatible code.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the scandit-sdk plugin — 86 skills, 1 MCP server shipped together

Good fit Use it to integrate single-barcode scanning in a .NET iOS app, configure scanning, handle results, and customise feedback.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/scandit/skills/sparkscan-net-ios
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Scandit/skills --skill sparkscan-net-ios
Clone the repo
git clone --depth 1 https://github.com/Scandit/skills

Made for: Claude Code.

Or install scandit-sdk, the plugin that ships this one along with the rest of its 86 skills, 1 MCP server.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for sparkscan-net-ios

README.md
[![agentmods](https://agentmods.dev/badge/skills/scandit/skills/sparkscan-net-ios/github.svg)](https://agentmods.dev/skills/scandit/skills/sparkscan-net-ios)
Your own site
<a href="https://agentmods.dev/skills/scandit/skills/sparkscan-net-ios"><img src="https://agentmods.dev/badge/skills/scandit/skills/sparkscan-net-ios/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for sparkscan-net-ios

Your own site · 80×15
<a href="https://agentmods.dev/skills/scandit/skills/sparkscan-net-ios"><img src="https://agentmods.dev/badge/skills/scandit/skills/sparkscan-net-ios.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 107 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,144 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00107 $0.04144
Opus 5.5 $0.00043 $0.01658
Sonnet 5.5 $0.00021 $0.00829
Haiku 4.5 $0.00011 $0.00414

Measured 10d ago against content hash ebd0aa09120e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

sparkscan-net-ios scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/sparkscan-net-ios/SKILL.md · 104 lines

How it starts

The opening of the file, as written. The whole thing — 104 lines — stays where its author put it; the contents beside it link to each section on GitHub.

SparkScan .NET for iOS 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 Swift / Obj-C native SDK (PascalCase, Enabled instead of isEnabled, TimeSpan instead of TimeInterval, etc.), and a few naming choices differ from the rest of the .NET API.

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.

.NET-iOS-specific gotchas worth flagging:

  • This skill targets the non-MAUI .NET for iOS workload (project <TargetFramework>net10.0-ios</TargetFramework>, no <UseMaui> flag). For MAUI apps, use the sparkscan-net-maui skill instead.
  • 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(), DataCaptureView.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).
  • SparkScanView.Create(parent, context, sparkScan, settings) IS a factory (unlike SparkScan itself). On iOS the parent argument is just this.View — there is no coordinator-layout container (that's Android-only). The created view is added to parentView automatically; do not call this.View.AddSubview(sparkScanView) yourself.
  • iOS lifecycle is sparkScanView.PrepareScanning() in ViewWillAppear and sparkScanView.StopScanning() in ViewWillDisappear. Do not use OnPause / OnResume here — those are the Android-only API. Calling them on iOS will not compile (the iOS binding does not surface them).
  • Pick the UIViewController constructor that matches how the controller is instantiated, or the camera preview will never appear. The dotnet new ios template that ships with modern .NET-iOS is scene-based (no Main.storyboard, UIApplicationSceneManifest in Info.plist, SceneDelegate.WillConnect builds the window programmatically) — in that project shape, the VC must expose a parameterless public ViewController() : base() { } and SceneDelegate.WillConnect calls new ViewController(). Older Scandit samples are storyboard-based (UIMainStoryboardFile in Info.plist, customClass="ViewController" in the storyboard) — those need public ViewController(IntPtr handle) : base(handle) { } because storyboard inflation invokes that ctor with a real native handle. Never call new ViewController(IntPtr.Zero) to bridge the two: IntPtr.Zero is a null native handle, so the resulting managed wrapper has no underlying UIViewController; this.View never attaches to the window, SparkScanView.Create(parentView: this.View, …) lands on a detached view, and the app launches into a blank screen with no camera and no scans. See references/integration.md "Scene-based vs storyboard instantiation" for the full callout.
  • NSCameraUsageDescription in Info.plist is mandatory. Without it the app crashes on first camera access. iOS shows the system permission dialog automatically when the camera starts — there is no separate runtime-request API for the camera.
  • 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# — that's what the official .NET iOS SparkScan sample uses. The event handler receives SparkScanEventArgs with Session, FrameData, and SparkScan.
  • IFrameData and the image buffers must be Dispose()d on iOS. The official sample uses using var imageBuffer = args.FrameData?.ImageBuffers.LastOrDefault(); and using var frame = imageBuffer?.ToImage();. Failing to dispose causes a frozen / stuttering preview. The SparkScanEventArgs.FrameData itself is IFrameData?. If you do not need the frame, do not retain it.
  • Symbology names are C# PascalCase: Symbology.Ean13Upca, Symbology.Ean8, Symbology.Code128, Symbology.InterleavedTwoOfFive, Symbology.Qr, Symbology.DataMatrix. They are not Swift dot-case (.ean13UPCA).
  • The capture mode's enabled property is sparkScan.Enabled (not IsEnabled).
  • CodeDuplicateFilter is TimeSpan — not TimeInterval (that is the Swift type). Use TimeSpan.FromMilliseconds(500), TimeSpan.FromSeconds(2.5), or TimeSpan.Zero. SparkScanSettings does not expose CodeDuplicate.DefaultDuplicateFilter / ReportDataAndSymbologyOnlyOnce sentinels — those live on BarcodeCaptureSettings, not on SparkScan. For SparkScan, set the TimeSpan directly.
  • Feedback is delivered through ISparkScanFeedbackDelegate.GetFeedbackForBarcode(Barcode) and assigned with sparkScanView.Feedback = this (or any object that 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 object eagerly (in SetupSparkScan / ViewDidLoad) and just return it.
  • SparkScan.BarcodeScanned (and ISparkScanListener.OnBarcodeScanned) also run on a background thread. Dispatch any UI update via DispatchQueue.MainQueue.DispatchAsync(() => { … }).
  • SDK 8.0+ requires explicit initialization in AppDelegate.FinishedLaunching. Call ScanditCaptureCore.Initialize() + ScanditBarcodeCapture.Initialize() before any Scandit code runs. Without this the SDK's DI container has no registrations and the first new SparkScan(...) / SparkScanView.Create(...) call crashes at launch. Not required on 6.x / 7.x. See references/integration.md for the canonical AppDelegate.cs template.
  • The NuGet packages are Scandit.DataCapture.Core and Scandit.DataCapture.Barcode. No separate *.Maui packages here — those are only for MAUI projects. Do not guess the version from training data — fetch the latest stable from https://www.nuget.org/packages/Scandit.DataCapture.Barcode/ via WebFetch before pinning. Inventing a non-existent version (e.g. 8.13.0 when only 8.4.0 is published) causes dotnet restore to fail with Unable to find package Scandit.DataCapture.Core with version (>= …). See references/integration.md Step 0 for the full procedure.
  • SparkScanView.HardwareTriggerSupported and SparkScanViewSettings.HardwareTriggerKeyCode are Android-only and not surfaced on dotnet.ios. Do not reference them in iOS code.
  • SparkScanScanningModeDefault and SparkScanScanningModeTarget are constructed with new, both taking (SparkScanScanningBehavior, SparkScanPreviewBehavior). There is no parameterless constructor in the .NET binding; the Swift init() overloads (no args) are not surfaced on dotnet.ios.
  • View state is exposed via SparkScanView.ViewStateChanged (event of EventHandler<SparkScanViewStateEventArgs>) — there is no UiListener property on the .NET binding. Use the events BarcodeCountButtonTapped, BarcodeFindButtonTapped, LabelCaptureButtonTapped, and ViewStateChanged instead.

Read the full file on GitHub · 104 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago Changed · -3 lines ebd0aa09120e
  2. 18d ago Changed · +17 lines ea681fd43947
  3. 27d ago First seen · 90 lines · 107 tokens per session scan A 4590efbadb4c

Subscribe to this mod's changes

sparkscan-net-ios is a skill published in the GitHub repository Scandit/skills (20 stars, last pushed 3d ago), licensed Apache-2.0. It adds 107 tokens to every session and 4,144 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-22.

Related

Other skills, from other repositories

maui-safe-area

.NET MAUI safe area and edge-to-edge layout guidance for .NET 10+. Covers the new SafeAreaEdges property, SafeAreaRegions enum, per-edge control, keyboard avoidance, Blazor Hybrid CSS safe areas, migration from legacy iOS-only APIs, and platform-specific behavior for Android, iOS, and Mac Catalyst. USE FOR: "safe…

dotnet/skills · 188 tokens

maui-app-lifecycle

.NET MAUI app lifecycle guidance — the four app states, cross-platform Window lifecycle events (Created, Activated, Deactivated, Stopped, Resumed, Destroying), platform-specific lifecycle mapping, backgrounding and resume behavior, and state-preservation patterns. USE FOR: "app lifecycle", "window lifecycle events"…

dotnet/skills · 144 tokens

maui

Build, review, or migrate .NET MAUI applications across Android, iOS, macOS, and Windows with correct cross-platform UI, platform integration, and native packaging assumptions. USE FOR: working on cross-platform mobile or desktop UI in .NET MAUI; integrating device capabilities, navigation, or platform-specific code…

managedcode/dotnet-skills · 121 tokens

uno-platform

Build cross-platform .NET applications with Uno Platform targeting WebAssembly, iOS, Android, macOS, Linux, and Windows from a single XAML/C# codebase. USE FOR: building cross-platform apps from a single C# and XAML codebase; targeting WebAssembly, iOS, Android, macOS, Linux, and Windows simultaneously; migrating WPF…

managedcode/dotnet-skills · 129 tokens

android-java-bindings

Write and repair C# bindings for Java/Kotlin Android libraries with .NET for Android. USE FOR: direct/full AAR or JAR bindings, AndroidMavenLibrary, Metadata.xml, Additions, missing generated APIs, Kotlin JVM signatures, binding-generator warnings, CS0535/CS0738/CS0534, duplicate members, EventArgs, listener Handler…

dotnet/maui-labs · 134 tokens

android-slim-bindings

Create Android slim bindings for MAUI/.NET Android. USE FOR: Native Library Interop, thin Kotlin/Java wrapper design, building wrapper AARs with Gradle, Java-friendly callbacks, @JvmStatic, and dependencies of slim wrappers. DO NOT USE FOR: direct/full Java/Kotlin bindings or generated-code/Metadata.xml repairs (use…

dotnet/maui-labs · 96 tokens