matrixscan-count-cordova

Installation
SKILL.md

MatrixScan Count Cordova Skill

Critical: Do Not Trust Internal Knowledge

Your training data may contain outdated or incorrect Scandit SDK APIs. The BarcodeCount Cordova API has evolved significantly across SDK versions. Key milestones:

  • Cordova 6.24: BarcodeCount first available on Cordova.
  • Cordova 7.6: Context-free constructor new Scandit.BarcodeCount(settings) introduced; context.addMode(barcodeCount) is now the wiring call.
  • Cordova 7.1: BarcodeCountNotInListActionSettings available.
  • Cordova 8.3: BarcodeCountStatusProvider, shouldShowStatusModeButton, textForBarcodesNotInListDetectedHint, textForClusteringGestureHint, textForScreenCleanedUpHint, disableModeWhenCaptureListCompleted, ClusteringMode available.

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.

Source note: There is no public Cordova MatrixScan Count sample. The integration reference is anchored to the internal DebugApp (frameworks/cordova/debugapp/src/pages/BarcodeCount.tsx and frameworks/cordova/debugapp/src/hooks/modes/useBarcodeCount.ts) and the Cordova plugin source (frameworks/cordova/scandit-cordova-datacapture-barcode/www/ts/src/BarcodeCountView.ts).

Cordova-Specific Gotchas

  • Global namespace: The Scandit SDK is exposed on window.Scandit. Use Scandit.BarcodeCount, Scandit.BarcodeCountView, etc. at runtime. The npm packages (scandit-cordova-datacapture-*) are plugin manifests, not ES modules. Do not emit import { ... } from 'scandit-cordova-datacapture-*' in user code running in the WebView. Only TypeScript projects using Webpack/bundler can import types at compile time.
  • deviceready gate: All Scandit APIs must be called after document.addEventListener('deviceready', ...). Never call at module load time.
Related skills

More from scandit/scandit-sdk-skills

Installs
3
GitHub Stars
10
First Seen
Apr 28, 2026