Optional_barcodeOptionalbarcodeSets the barcode format(s) to read.
This value is a combination of EnumBarcodeFormat flags that determine which barcode types to read.
For example, to scan QR codes and OneD codes,
set the value to EnumBarcodeFormat.BF_QR_CODE | EnumBarcodeFormat.BF_ONED.
OptionalexpectedDefines the expected number of barcodes to be scanned. The scanning process will automatically stop when the number of detected barcodes reaches this count.
OptionalisEnables or disables the auto-zoom feature during scanning. When enabled (true), the scanner will automatically zoom in to improve barcode detection.
OptionalisSpecifies if a beep sound should be played when a barcode is successfully detected. Set to true to enable the beep sound, or false to disable it.
OptionalisSpecifies whether the camera toggle button is displayed. This button lets users switch between available cameras (e.g., front and rear).
OptionalisDetermines whether the close button is visible on the scanner UI. This button allows users to exit the scanning interface.
OptionalisDetermines if a scanning laser overlay is shown on the scanning screen. This visual aid (scan laser) helps indicate the scanning line during barcode detection.
OptionalisDetermines whether the torch (flashlight) button is visible in the scanning UI. Set to true to display the torch button, enabling users to turn the flashlight on/off.
OptionalisSpecifies whether the device should vibrate when a barcode is successfully detected. Set to true to enable the vibration, or false to disable it.
OptionallicenseThe license key required to initialize the barcode reader.
OptionalmaxSpecifies the maximum number of consecutive stable frames to process before exiting scanning. A "stable frame" is one where no new barcode is detected; the default value is typically 10.
OptionalscanningSets the scanning mode for the barcode reader. The mode is defined by the EnumScanningMode and affects the scanning behavior.
OptionalscanDefines the scanning area as a DSRect object where barcodes will be detected. Only the barcodes located within this defined region will be processed.
OptionaltemplateSpecifies the template configuration for the barcode scanner. This can be either a file path or a JSON string that defines various scanning parameters.
OptionaltemplateProvides a Node.js 'require' function to load the template file when running in a Node environment. This facilitates importing external template configuration files.
internal field, don't set it.