Click or drag to resize

ScanSettingsEnableSymbology Method

Enable or disable recognition of particular symbology

Namespace:  Scandit.BarcodePicker
Assembly:  Scandit.BarcodePicker (in Scandit.BarcodePicker.dll) Version: 5.19.3.10 (5.19.3.10)
Syntax
public void EnableSymbology(
	BarcodeSymbology symbology,
	bool enabled = true
)

Parameters

symbology
Type: Scandit.RecognitionBarcodeSymbology
The symbology to enable/disable. Must not be Unknown
enabled (Optional)
Type: SystemBoolean
Whether the symbology should be enabled.
Remarks

By default, recognition of all symbologies is disabled. Each required symbology must be explicitly enabled. It is recommended to only enable symbologies actually used by the application, as each enabled symbology consumes a certain amount of processing time.

Some 1d barcode symbologies allow you to encode variable-length data. By default, the Scandit BarcodeScanner SDK only scans barcodes in a certain length range. If your application requires scanning of one of these symbologies, and the length is falling outside the default range, you may need to adjust the "active symbol counts" for this symbology. This is shown in the following few lines of code.

var activeSymbolCounts = Enumerable.Range(7, 14).Select(x => (UInt16)x).ToList();
settings.Symbologies[BarcodeSymbology.Code39].ActiveSymbolCounts = activeSymbolCounts;

For details on defaults and how to calculate the symbol counts for each symbology, take a look at the symbologies properties page.

Version Information

Scandit.Recognition

Supported in: 1.0.0.0
See Also