Skip to main content
Not sure which Scandit product fits your use case?

Install our data-capture-sdk skill so your coding agent can answer questions about Scandit products and recommend the right one for your use case, directly from your editor. More info →

Run this in a terminal in your project directory, then follow the instructions to select your coding agent.

npx skills add https://github.com/scandit/skills --skill data-capture-sdk

Your coding agent loads the skill automatically based on your prompt; to invoke it explicitly, call /data-capture-sdk followed by your task.

Single Barcode Scanning

Implementing single scanning of barcodes using the Scandit Data Capture SDK can be done in two ways:

  • (Recommended) Implementing SparkScan, our pre-built UI and workflow for barcode scanning.
  • Implementing the low-level Barcode Capture API.

The SparkScan API provides pre-built UI elements (trigger button, camera view, camera controls), a complete scanning workflow (visual, audio, and haptic feedback, and UI transitions on scan) and offers additional functionality needed to achieve optimal scanning UX, such as:

  • Triggering scans via a hardware trigger (volume or dedicated hardware button)
  • Pre-built code rejection and error handling options
  • Option to choose between single and continuous scanning, programmatically or with hold gesture
  • Battery-optimizing features such as idle timeout and camera standby
  • A floating UI that keeps your focus on the tasks at hand while offering the best scanning performances

SparkScan Workflow
Scanning to a list with SparkScan

All of the above functionality is available out-of-the-box, without having to create it yourself via the low-level API.

Both SparkScan and Barcode Capture include AI-powered scanning capabilities that automatically handle challenging scenarios such as avoiding unintentional scans, selecting barcodes in dense environments, scanning damaged barcodes with OCR fallback, and intelligently filtering duplicate scans. See the AI-Powered Barcode Scanning guide for details.