Batch Barcode Scanner Configuration
Class which is used to configure BatchBarcodeScannerActivity. Contains settings indicating views Behaviour, Texts and Appearance.
Functions
A list of document formats that the scanner should recognize. Anything not on the list will not trigger a successful scan.
Sets additional configuration for BarcodeScanner to further tweak it's logic.
Sets auto close timer in seconds. 0 = disabled and it is the default value.
Additional filter to reject or accept barcode scanner results. The default value is an instance of BarcodeFilter.
A list of barcodes that the scanner should recognize. Anything not on the list will not trigger a successful scan.
The placeholder for barcodes count text. Should be a string in the following format: "%d Codes".
The color for barcodes count text.
Set supported camera module: CameraModule.BACK, CameraModule.FRONT or others. Optional. By default is CameraModule.BACK.
Background color outside of the finder window.
Preview mode of the camera: Fit-In or Fill-In. Optional, default is Fill-In.
Set custom camera zoom range. Min value 0.5f and max value 100f (if supported by device). Default value is ZoomRange(0.5x, 100x).
Set current zoom ratio from 0.5x up to 100x (if supported). Default value is 1x.
Icon of the cancel button.
Title of the cancel button.
Text of the button which clears the list of scanned barcodes.
The color of Submit button.
The color of bottom sheet.
The color of text elements in bottom sheet.
Title of the button that opens the screen where the user can allow the usage of the camera by the app.
Text that will be displayed when the app is not allowed to use the camera, prompting the user to enable the usage of the camera.
Allows to set custom BarcodeScannerEngineMode for the barcode scanning. BarcodeScannerEngineMode.NEXT_GEN is used by default.
The text for the data fetching state of the barcode item in a list. Smth "Fetching info…".
Aspect ratio of the finder window.
Color of the finder window's outline.
Thickness of the finder window's outline in Px.
Text hint shown under the finder window.
Color of the text hint under the finder window.
Controls whether the flash should be initially enabled. The default value is false
.
Additional filter to reject or accept barcode scanner results. The default value is an instance of BarcodeFilter.
Sets initial scan delay in ms. 0 = disabled and it is the default value
Locks the minimal supported focus distance and disables a continuous focus
Text of the message that there are no barcodes scanned.
Orientation lock mode of the camera: CameraOrientationMode.PORTRAIT or CameraOrientationMode.LANDSCAPE. By default the camera orientation is not locked.
Controls the state of the Barcode selection overlay. Disabled by default.
Text of the button which finishes the flow.
Controls whether to play a beep sound after a successful scanning. Default value is true
.
Set an interval between successful scanned frames in milliseconds.
Background color of the top toolbar.
Color of the titles of all buttons in the top toolbar.
The color of the inactive flash button in the toolbar.
Controls whether the touch to focus feature should be enabled. Default is true
.
Controls whether buttons should use all capitals style.
Set true
to enable showing the area of interest on camera preview. Enabled by default.