Decode Config Sample API

To configure the decoder properties, you need to instantiate  BarcodeManager and get a  ScannerProperties instance.

BarcodeManager manager = null;
ScannerProperties configuration = null;
...
manager = new BarcodeManager();
...
configuration = ScannerProperties.Edit(manager);

Properties are organized hierarchically Each property has the method Set that requires a different argument depending on the property type (i.e.: int, boolean, String, etc...):

configuration.Code39.EnableChecksum.Set(true);
configuration.Code39.FullAscii.Set(true);
configuration.Code39.Length1.Set(20);
...
configuration.code39.userID.set('x');
...
if (configuration.QrCode.IsSupported)
{
configuration.QrCode.Enable.Set(false);
}

For the configuration to be actually applied, you must call the ScannerProperties' Store method:

configuration.Store(manager, true);