Modules.Barcode.BarcodeCaptureDict
Simple object passed to Modules.Barcode.capture to capture a Barcode.
Properties #
acceptedFormats#
Type: Array<Number>
An optional array of int constants detailing which barcode formats are accepted. Defaults to all formats.
Check out the "Barcode Format Constants" section below to see the available int constants.
allowedEANExtensions#
Type: Array<Number>
An optional int[] that specifies allowed extension lengths for EAN or UPC barcodes.
https://zxing.github.io/zxing/apidocs/
allowedLengths#
Type: Array<Number>
An optional int[] that specifies allowed lengths of encoded data -- reject anything else.
https://zxing.github.io/zxing/apidocs/
animate#
Type: Boolean
Indicates if the device should animate between the current activity and the camera activity when the current activity is in a different orientation than the camera. Default is true.
assumeCode39CheckDigit#
Type: Boolean
An optional boolean which if true, will assume Code 39 codes employ a check digit.
https://zxing.github.io/zxing/apidocs/
Please note that this hint only applies to CODE_39 format barcodes.
assumeGS1#
Type: Boolean
An optional boolean to assume the barcode is being processed as a GS1 barcode, and modify behavior as needed.
https://zxing.github.io/zxing/apidocs/
Please note that this hint only applies to CODE_128 format barcodes.
characterSet#
Type: String
An optional string that specifies what character encoding to use when decoding, where applicable
https://zxing.github.io/zxing/apidocs/
keepOpen#
Type: Boolean
Whether or not to keep the barcode scanner open after a barcode is recognized. Defaults to false.
When set to true, "success" will fire once every time a barcode is recognized, up to two times per second.
As such, it can fire multiple times for a single barcode!
preventRotation#
Type: Boolean
Prevent the scanner from auto-rotating when the device is rotated. Default: true
pureBarcode#
Type: Boolean
An optional boolean to assume the image is a pure monochrome image of a barcode.
https://zxing.github.io/zxing/apidocs/
returnCodabarStartEnd#
Type: Boolean
An optional boolean which if true, will return the start and end digits in a Codabar barcode instead of stripping them.
https://zxing.github.io/zxing/apidocs/
Please note that this hint only applies to CODABAR format barcodes.
showRectangle#
Type: Boolean
Whether or not to include the default rectangle around the scanning area. Defaults to true.
tryHarder#
Type: Boolean
An optional boolean to spend more time to try to find a barcode; optimize for accuracy, not speed.
https://zxing.github.io/zxing/apidocs/