matrixscan-count-capacitor

Installation
SKILL.md

MatrixScan Count Capacitor Skill

Critical: Do Not Trust Internal Knowledge

Your training data may contain outdated or incorrect Scandit SDK APIs. The BarcodeCount API has evolved significantly across versions — constructor signatures, view factory methods, and feature availability vary by SDK version. Properties, method names, and plugin patterns may differ from other platforms or from general knowledge.

Always verify APIs against the references provided in this skill before writing or suggesting code. Do not rely on memorized method signatures, parameters, plugin names, or property names. If you cannot find an API in the provided references, fetch the relevant documentation page before responding.

Capacitor-specific gotchas worth flagging:

  • ScanditCaptureCorePlugin.initializePlugins() must be called (and awaited) before any other Scandit API — including DataCaptureContext construction. Forgetting this produces runtime errors that look unrelated to initialization.
  • npx cap sync must be run after every plugin version change to propagate native artifacts into iOS/Android. Skipping it yields a web/native version mismatch at runtime.
  • BarcodeCountView requires a DOM element. BarcodeCountView.connectToElement(htmlElement) mirrors its size and position from a DOM element. Call detachFromElement() on cleanup.
  • BarcodeCount runs on iOS and Android only. It does not run in the browser. Guard with Capacitor.isNativePlatform() if your app also targets web.
  • Minimum SDK versions:
    • BarcodeCount on Capacitor: 6.18
    • new BarcodeCount(settings) constructor (no context): 7.6. Before 7.6, use BarcodeCount.forDataCaptureContext(context, settings).
    • BarcodeCountView constructed with object literal new BarcodeCountView({context, barcodeCount, style}): verified in samples. The static factories BarcodeCountView.forContextWithMode(context, barcodeCount) and BarcodeCountView.forContextWithModeAndStyle(context, barcodeCount, style) are also documented.
    • Not-in-list action settings (BarcodeNotInListActionSettings): 7.1
Related skills

More from scandit/scandit-sdk-skills

Installs
3
GitHub Stars
10
First Seen
Apr 28, 2026