Deprecation warning

Please note that this is outdated documentation for an older release of the Scandit Barcode Scanner SDK.

We are deprecating the 5.x API on all platforms (except Linux). Release 5.19 in April 2021 will be our final. Applications running 5.x will continue to work, and we will continue to release critical bug fixes and security patches only, for one year. We encourage you to migrate to 6.x and take advantage of our latest / advanced features and improved performance.

You'll find the updated documentation at: Data Capture SDK Documentation for Xamarin.Android and Data Capture SDK Documentation for Xamarin.iOS

Change the length of barcodes to decode


By default the Scandit Barcode Scanner scans barcodes with a fixed symbol count range. Under certain conditions it is helpful to modify the length of the barcode to be decoded, for example if

  • you want to scan longer codes which cannot be decoded with the default settings.
  • to optimize decoder performance for codes of certain lengths when the application only requires scanning particular barcode lengths.

The active symbol count setting is ignored for fixed-size barcodes (EAN and UPC barcodes) as well as 2d codes.

Change the barcode length

To know the symbol count of a barcode, you can either:

Changing the length of the barcodes is done through the property SymbologySettings.ActiveSymbolCounts. Following an example of changing for Code 128 barcodes the symbol count range (7-20).

ScanSettings settings = ScanSettings.DefaultSettings ();
NSMutableSet codeLengths = new NSMutableSet();
int i = 7;
for (i= 7; i <= 20; i++) {
codeLengths.Add (new NSNumber (i));
settings.SettingsForSymbology (Symbology.Code128).ActiveSymbolCounts = codeLengths;

Available since SDK version 4.12.0.

Enumeration of all supported 1d and 2d barcode symbologies
Definition: Symbology.cs:5