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 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)
  • UI to activate an aimer for precise scanning in crowded scenarios
  • 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

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.