Class BarcodeRecognizerConfiguration
-
- All Implemented Interfaces:
-
android.os.Parcelable
public final class BarcodeRecognizerConfiguration implements Parcelable
Configuration of the scanning behavior.
-
-
Field Summary
Fields Modifier and Type Field Description private List<BarcodeDocumentFormat>
acceptedDocumentFormats
private BarcodesExtensionFilter
barcodesExtensionFilter
private String
barcodesRegexFilter
private Integer
minimumTextLength
private Integer
maximumTextLength
private Integer
minimum1DBarcodesQuietZone
private Boolean
stripCheckDigits
private Boolean
useIATA2OF5Checksum
private Boolean
useCode11Checksum
private List<BarcodeFormat>
barcodeFormats
private MSIPlesseyChecksumAlgorithm
msiPlesseyChecksumAlgorithm
private AustraliaPostCustomerFormat
australiaPostCustomerFormat
private Boolean
lowPowerMode
private Gs1Handling
gs1Handling
-
Constructor Summary
Constructors Constructor Description BarcodeRecognizerConfiguration(Map<String, Object> source)
BarcodeRecognizerConfiguration(JSONObject json)
BarcodeRecognizerConfiguration(List<BarcodeDocumentFormat> acceptedDocumentFormats, BarcodesExtensionFilter barcodesExtensionFilter, String barcodesRegexFilter, Integer minimumTextLength, Integer maximumTextLength, Integer minimum1DBarcodesQuietZone, Boolean stripCheckDigits, Boolean useIATA2OF5Checksum, Boolean useCode11Checksum, List<BarcodeFormat> barcodeFormats, MSIPlesseyChecksumAlgorithm msiPlesseyChecksumAlgorithm, AustraliaPostCustomerFormat australiaPostCustomerFormat, Boolean lowPowerMode, Gs1Handling gs1Handling)
-
Method Summary
Modifier and Type Method Description final List<BarcodeDocumentFormat>
getAcceptedDocumentFormats()
List of accepted barcode document formats. final Unit
setAcceptedDocumentFormats(List<BarcodeDocumentFormat> acceptedDocumentFormats)
List of accepted barcode document formats. final BarcodesExtensionFilter
getBarcodesExtensionFilter()
Filter for extended EAN and UPC barcodes. final Unit
setBarcodesExtensionFilter(BarcodesExtensionFilter barcodesExtensionFilter)
Filter for extended EAN and UPC barcodes. final String
getBarcodesRegexFilter()
Regular expression filter for barcode text. final Unit
setBarcodesRegexFilter(String barcodesRegexFilter)
Regular expression filter for barcode text. final Integer
getMinimumTextLength()
Optional minimum required text length of the detected barcode. final Unit
setMinimumTextLength(Integer minimumTextLength)
Optional minimum required text length of the detected barcode. final Integer
getMaximumTextLength()
Optional maximum text length of the detected barcode. final Unit
setMaximumTextLength(Integer maximumTextLength)
Optional maximum text length of the detected barcode. final Integer
getMinimum1DBarcodesQuietZone()
Optional minimum required quiet zone on the barcode. final Unit
setMinimum1DBarcodesQuietZone(Integer minimum1DBarcodesQuietZone)
Optional minimum required quiet zone on the barcode. final Boolean
getStripCheckDigits()
If true
, check digits for UPC, EAN and MSI Plessey codes are removed from the result.final Unit
setStripCheckDigits(Boolean stripCheckDigits)
If true
, check digits for UPC, EAN and MSI Plessey codes are removed from the result.final Boolean
getUseIATA2OF5Checksum()
If true
, the optional check digit for IATA_2_OF_5 codes is used in validation.final Unit
setUseIATA2OF5Checksum(Boolean useIATA2OF5Checksum)
If true
, the optional check digit for IATA_2_OF_5 codes is used in validation.final Boolean
getUseCode11Checksum()
If true
, the optional check digit for CODE_11 codes is used in validation.final Unit
setUseCode11Checksum(Boolean useCode11Checksum)
If true
, the optional check digit for CODE_11 codes is used in validation.final List<BarcodeFormat>
getBarcodeFormats()
List of accepted barcode symbologies. final Unit
setBarcodeFormats(List<BarcodeFormat> barcodeFormats)
List of accepted barcode symbologies. final MSIPlesseyChecksumAlgorithm
getMsiPlesseyChecksumAlgorithm()
Checksum algorithm used for MSI Plessey barcodes. final Unit
setMsiPlesseyChecksumAlgorithm(MSIPlesseyChecksumAlgorithm msiPlesseyChecksumAlgorithm)
Checksum algorithm used for MSI Plessey barcodes. final AustraliaPostCustomerFormat
getAustraliaPostCustomerFormat()
The customer format used in AUSTRALIA_POST codes. final Unit
setAustraliaPostCustomerFormat(AustraliaPostCustomerFormat australiaPostCustomerFormat)
The customer format used in AUSTRALIA_POST codes. final Boolean
getLowPowerMode()
If true
, enables a mode that slightly decreases scanning quality and energy consumption.final Unit
setLowPowerMode(Boolean lowPowerMode)
If true
, enables a mode that slightly decreases scanning quality and energy consumption.final Gs1Handling
getGs1Handling()
The expected way of handling GS1_COMPOSITE barcodes. final Unit
setGs1Handling(Gs1Handling gs1Handling)
The expected way of handling GS1_COMPOSITE barcodes. final JSONObject
toJson()
final static BarcodeRecognizerConfiguration
default()
-
-
Constructor Detail
-
BarcodeRecognizerConfiguration
BarcodeRecognizerConfiguration(JSONObject json)
-
BarcodeRecognizerConfiguration
BarcodeRecognizerConfiguration(List<BarcodeDocumentFormat> acceptedDocumentFormats, BarcodesExtensionFilter barcodesExtensionFilter, String barcodesRegexFilter, Integer minimumTextLength, Integer maximumTextLength, Integer minimum1DBarcodesQuietZone, Boolean stripCheckDigits, Boolean useIATA2OF5Checksum, Boolean useCode11Checksum, List<BarcodeFormat> barcodeFormats, MSIPlesseyChecksumAlgorithm msiPlesseyChecksumAlgorithm, AustraliaPostCustomerFormat australiaPostCustomerFormat, Boolean lowPowerMode, Gs1Handling gs1Handling)
-
-
Method Detail
-
getAcceptedDocumentFormats
final List<BarcodeDocumentFormat> getAcceptedDocumentFormats()
List of accepted barcode document formats.
-
setAcceptedDocumentFormats
final Unit setAcceptedDocumentFormats(List<BarcodeDocumentFormat> acceptedDocumentFormats)
List of accepted barcode document formats.
-
getBarcodesExtensionFilter
final BarcodesExtensionFilter getBarcodesExtensionFilter()
Filter for extended EAN and UPC barcodes. Default is NO_FILTER
-
setBarcodesExtensionFilter
final Unit setBarcodesExtensionFilter(BarcodesExtensionFilter barcodesExtensionFilter)
Filter for extended EAN and UPC barcodes. Default is NO_FILTER
-
getBarcodesRegexFilter
final String getBarcodesRegexFilter()
Regular expression filter for barcode text. If the barcode text does not match the regular expression, it will not be scanned. The default is an empty string (setting is turned off). This option overrides
barcodesExtensionFilter
option. Default is ""
-
setBarcodesRegexFilter
final Unit setBarcodesRegexFilter(String barcodesRegexFilter)
Regular expression filter for barcode text. If the barcode text does not match the regular expression, it will not be scanned. The default is an empty string (setting is turned off). This option overrides
barcodesExtensionFilter
option. Default is ""
-
getMinimumTextLength
final Integer getMinimumTextLength()
Optional minimum required text length of the detected barcode. The default is 0 (setting is turned off). NOTE - This feature works on ITF barcodes only. Default is 0
-
setMinimumTextLength
final Unit setMinimumTextLength(Integer minimumTextLength)
Optional minimum required text length of the detected barcode. The default is 0 (setting is turned off). NOTE - This feature works on ITF barcodes only. Default is 0
-
getMaximumTextLength
final Integer getMaximumTextLength()
Optional maximum text length of the detected barcode. The default is 0 (setting is turned off). NOTE - This feature works on ITF barcodes only. Default is 0
-
setMaximumTextLength
final Unit setMaximumTextLength(Integer maximumTextLength)
Optional maximum text length of the detected barcode. The default is 0 (setting is turned off). NOTE - This feature works on ITF barcodes only. Default is 0
-
getMinimum1DBarcodesQuietZone
final Integer getMinimum1DBarcodesQuietZone()
Optional minimum required quiet zone on the barcode. Measured in modules (the smallest bar size on a barcode). The default is 10. NOTE - This feature works on ITF barcodes only. Default is 10
-
setMinimum1DBarcodesQuietZone
final Unit setMinimum1DBarcodesQuietZone(Integer minimum1DBarcodesQuietZone)
Optional minimum required quiet zone on the barcode. Measured in modules (the smallest bar size on a barcode). The default is 10. NOTE - This feature works on ITF barcodes only. Default is 10
-
getStripCheckDigits
final Boolean getStripCheckDigits()
If
true
, check digits for UPC, EAN and MSI Plessey codes are removed from the result. Has no effect if both single and double digit MSI Plessey checksums are enabled. The default isfalse
. Default is false
-
setStripCheckDigits
final Unit setStripCheckDigits(Boolean stripCheckDigits)
If
true
, check digits for UPC, EAN and MSI Plessey codes are removed from the result. Has no effect if both single and double digit MSI Plessey checksums are enabled. The default isfalse
. Default is false
-
getUseIATA2OF5Checksum
final Boolean getUseIATA2OF5Checksum()
If
true
, the optional check digit for IATA_2_OF_5 codes is used in validation. The default istrue
. Default is true
-
setUseIATA2OF5Checksum
final Unit setUseIATA2OF5Checksum(Boolean useIATA2OF5Checksum)
If
true
, the optional check digit for IATA_2_OF_5 codes is used in validation. The default istrue
. Default is true
-
getUseCode11Checksum
final Boolean getUseCode11Checksum()
If
true
, the optional check digit for CODE_11 codes is used in validation. The default istrue
. Default is true
-
setUseCode11Checksum
final Unit setUseCode11Checksum(Boolean useCode11Checksum)
If
true
, the optional check digit for CODE_11 codes is used in validation. The default istrue
. Default is true
-
getBarcodeFormats
final List<BarcodeFormat> getBarcodeFormats()
List of accepted barcode symbologies.
-
setBarcodeFormats
final Unit setBarcodeFormats(List<BarcodeFormat> barcodeFormats)
List of accepted barcode symbologies.
-
getMsiPlesseyChecksumAlgorithm
final MSIPlesseyChecksumAlgorithm getMsiPlesseyChecksumAlgorithm()
Checksum algorithm used for MSI Plessey barcodes. The default value is MOD_10. Default is MOD_10
-
setMsiPlesseyChecksumAlgorithm
final Unit setMsiPlesseyChecksumAlgorithm(MSIPlesseyChecksumAlgorithm msiPlesseyChecksumAlgorithm)
Checksum algorithm used for MSI Plessey barcodes. The default value is MOD_10. Default is MOD_10
-
getAustraliaPostCustomerFormat
final AustraliaPostCustomerFormat getAustraliaPostCustomerFormat()
The customer format used in AUSTRALIA_POST codes. The default value is ALPHA_NUMERIC. Default is ALPHA_NUMERIC
-
setAustraliaPostCustomerFormat
final Unit setAustraliaPostCustomerFormat(AustraliaPostCustomerFormat australiaPostCustomerFormat)
The customer format used in AUSTRALIA_POST codes. The default value is ALPHA_NUMERIC. Default is ALPHA_NUMERIC
-
getLowPowerMode
final Boolean getLowPowerMode()
If
true
, enables a mode that slightly decreases scanning quality and energy consumption. Increases scanning speed. Iffalse
, the mode is disabled. The default isfalse
. Android only. Default is false
-
setLowPowerMode
final Unit setLowPowerMode(Boolean lowPowerMode)
If
true
, enables a mode that slightly decreases scanning quality and energy consumption. Increases scanning speed. Iffalse
, the mode is disabled. The default isfalse
. Android only. Default is false
-
getGs1Handling
final Gs1Handling getGs1Handling()
The expected way of handling GS1_COMPOSITE barcodes. Default is PARSE
-
setGs1Handling
final Unit setGs1Handling(Gs1Handling gs1Handling)
The expected way of handling GS1_COMPOSITE barcodes. Default is PARSE
-
toJson
final JSONObject toJson()
-
default
final static BarcodeRecognizerConfiguration default()
-
-
-
-