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-sdkYour coding agent loads the skill automatically based on your prompt; to invoke it explicitly, call /data-capture-sdk followed by your task.
Already installed? Update steps differ by agent — see how to keep your skills up to date.
Configure Barcode Symbologies
This page describes the steps to configure a barcode based capture mode to read only the specific barcodes you require.
When integrating Scandit barcode scanning into your application, you must configure the type(s) of barcodes that you need to scan. Generally, it is best to enable only those symbologies you need, as this ensures the best performance and user experience. No symbologies are enabled by default, to enable scanning of a particular barcode, its symbology must be enabled.
If you are unsure what symbologies you need to scan, use the Scandit Demo App available in the Apple App Store and Android Play Store. After you have installed the app, select the “Any Code” mode and scan the codes you are interested in. The name of the symbology appears on the result screen.
See the Barcode Symbologies page for all supported barcode types. Additionally, the available symbol count range, checksum, extensions, etc., for all symbologies are listed in Symbology Properties.
Enable the Symbologies You Want to Read
For you app to read a given type of symbology, you need to enable it in the capture settings of the barcode capture mode you are using. For example:
SparkScanSettings.SparkScanSettings()for SparkScanBarcodeCaptureSettings.enableSymbology()for barcode captureBarcodeBatchSettings.enableSymbology()for barcode batch (MatrixScan)
The following code shows how to enable scanning Code 128 codes for Barcode Capture:
BarcodeCaptureSettings settings = BarcodeCaptureSettings.Create();
settings.EnableSymbology(Symbology.Code128, true);
Symbology Presets by Industry
The capture settings presets in this section are currently only available for single scanning modes (Barcode Capture, SparkScan) and are not available for MatrixScan.
An alternative to enabling your desired symbologies individually in your capture settings, you can use a predefined industry vertical CapturePreset.
The available presets and the corresponding symbologies enabled by each is listed below.
You can still enable or disable individual symbologies as needed after creating your capture settings using one the presents.
| Preset | Symbologies Enabled |
|---|---|
| TRANSPORT | Code128 QR Codes Code 39 Data Matrix EAN13_UPCA Interleaved 2-of-5 Aztec EAN8 PDF417 UPCE |
| LOGISTICS | Code128 QR Codes Code 39 Data Matrix EAN13_UPCA Interleaved 2-of-5 Codabar EAN8 PDF417 UPCE |
| RETAIL | EAN13_UPCA Code128 QR Codes Code 39 EAN8 Data Matrix Interleaved 2-of-5 UPCE GS1 Databar GS1 Databar Expanded |
| HEALTHCARE | Code128 Data Matrix QR Code EAN13_UPCA Code39 MicroPDF417 Interleaved 2-of-5 MSI Plessey EAN8 |
| MANUFACTURING | Code128 Data Matrix Code 39 QR Codes EAN13_UPCA Interleaved 2-of-5 PDF417 UPCE EAN8 |
Configure the Active Symbol Count
Barcode symbologies (such as Code 128, Code 39, Code 93, or Interleaved Two of Five) can store variable-length data. For example, Code 39 can be used to store a string from 1 to 40-50 symbols. There is no fixed upper limit, though there are practical limitations to the code’s length for it to still be conveniently readable by barcode scanners.
For performance reasons, the Scandit Data Capture SDK limits the possible symbol range for variable-length symbologies.
If you want to read codes that are shorter/longer than the specified default range or you want to tailor your app to only read codes of a certain length, you need to change the active symbol count of the symbology to accommodate the data length you want to use in your application.
The below lines of code show how to change the active symbol count for Code 128 to read codes with 6, 7 and 8 symbols.
BarcodeCaptureSettings settings = BarcodeCaptureSettings.Create();
SymbologySettings symbologySettings = settings.GetSymbologySettings(Symbology.Code128);
HashSet<short> activeSymbolCounts = new HashSet<short>(new short[] { 6, 7, 8 });
symbologySettings.ActiveSymbolCounts = activeSymbolCounts;