Follow

Set symbology length from Low-Level API

The symbol counts can be set from Low-Level API, here is an example of how to change the length on Code 39:

BarcodeScannerSettings settings = BarcodeScannerSettings.createWithPreset(BarcodeScannerSettings.PRESET_NONE);
//Symbol counts from 5 to 26
short[] code_lengths = new short[20];
short len = 5;
for(inti = 0; i < 20; i++) {
  code_lengths[i] = len;
  len++;
}

//Setting new symbol counts to Code 39
settings.getSymbologySettings(Barcode.SYMBOLOGY_CODE39).setActiveSymbolCounts(code_lengths);

See Symbology properties.

Available in SDK 4.8.0 and later.

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request