scanBarcode
Initiates a scanning session for a single barcode using the specified scanners and config options specified with ScanOptions. The scanner refers to the type of scanner to be used (e.g., back camera or front camera). The set of available scanners on the device can be obtained by calling discoverScanners.
Return
A Cancelable object that can be used to cancel the scanning session if required.
Parameters
options
The options to customize the scanning process. This includes settings like the supported barcode formats to scan, visibility of controls, and whether to enable the light.
callback
The ScanBarcodeResultCallback to be called after the command completes