public void EnableSymbology( BarcodeSymbology symbology, bool enabled = true )
Public Sub EnableSymbology ( symbology As BarcodeSymbology, Optional enabled As Boolean = true )
public: void EnableSymbology( BarcodeSymbology symbology, bool enabled = true )
member EnableSymbology : symbology : BarcodeSymbology * ?enabled : bool (* Defaults: let _enabled = defaultArg enabled true *) -> unit
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.