BarcodeScannerAdditionalConfiguration

data class BarcodeScannerAdditionalConfiguration(val minimumTextLength: Int = 0, val maximumTextLength: Int = 0, val minimum1DQuietZoneSize: Int = 10, val gs1HandlingMode: Gs1Handling = Gs1Handling.PARSE, val msiPlesseyChecksumAlgorithms: List<MsiPlesseyChecksumAlgorithm> = BarcodeFormatMsiPlesseyConfiguration.default().checksumAlgorithms, val stripCheckDigits: Boolean = false, val lowPowerMode: Boolean = false, val useIata2Of5Checksum: Boolean = true, val useCode11Checksum: Boolean = true, val australiaPostCustomerFormat: AustraliaPostCustomerFormat = AustraliaPostCustomerFormat.ALPHA_NUMERIC)

Entity represents additional configuration params for BarcodeScanner.

Note: only a few barcode types support these params - for the rest these settings will have no influence. Please read each param documentation carefully before modifying.

Note: in future these params might change their behavior. If you you use non-default values in your code please read changelogs of future versions carefully to avoid subtle changes in application logic.

Constructors

Link copied to clipboard
constructor(minimumTextLength: Int = 0, maximumTextLength: Int = 0, minimum1DQuietZoneSize: Int = 10, gs1HandlingMode: Gs1Handling = Gs1Handling.PARSE, msiPlesseyChecksumAlgorithms: List<MsiPlesseyChecksumAlgorithm> = BarcodeFormatMsiPlesseyConfiguration.default().checksumAlgorithms, stripCheckDigits: Boolean = false, lowPowerMode: Boolean = false, useIata2Of5Checksum: Boolean = true, useCode11Checksum: Boolean = true, australiaPostCustomerFormat: AustraliaPostCustomerFormat = AustraliaPostCustomerFormat.ALPHA_NUMERIC)

Properties

Link copied to clipboard

GS1 handling mode. The default is Gs1Handling.PARSE.

Link copied to clipboard
val lowPowerMode: Boolean = false

If true, enabled the mode which slightly decreases the scanning quality and the energy consumption, and increases the scanning speed. If false - mode is disabled. The default is false.

Link copied to clipboard

Maximum text length of the scanned barcode. Setting to zero removes the limit. The default value is 0 (the setting is turned off). NOTE: Currently works for ITF and MSI Plessey barcodes only!

Link copied to clipboard

Minimum required quiet zone on the barcode. Measured in modules (the size of a minimal bar on the barcode). The default value is 10. NOTE: Currently works for ITF and MSI Plessey barcodes only!

Link copied to clipboard

Minimum required text length of the scanned barcode. The default value is 0 (the setting is turned off). NOTE: Currently works for ITF and MSI Plessey barcodes only!

Link copied to clipboard

The checksum algorithms for MSI Plessey barcodes. The default value is MsiPlesseyChecksumAlgorithm.MOD_10.

Link copied to clipboard

If true, check digits for UPC, EAN and MSI Plessey codes are removed from result. Has no effect if both single and double digit MSI Plessey checksums are enabled. The default is false

Link copied to clipboard
Link copied to clipboard