Create a new BarcodeReader using a Configuration.
A configuration object.
Optional
detectedUser-supplied barcode detection handler.
This is a synchronous call, so further processing will not happen until the handler returns.
User-supplied barcode detection handler.
This is a synchronous call, so further processing will not happen until the handler returns.
Optional
onOptional user-supplied error callback.
This is invoked by the BarcodeReader if an error occurred while processing frames, and is usually not recoverable.
Optional user-supplied error callback.
This is invoked by the BarcodeReader if an error occurred while processing frames, and is usually not recoverable.
Destroy this BarcodeReader instance, making it unusable.
This will release all associated resources, and should be called whenever an application no longer needs to scan.
Promise that resolves when the BarcodeReader and its associated resources are fully destroyed.
Initialize the BarcodeReader instance.
A promise resolving to an initialized BarcodeReader instance, or an error object.
Generated using TypeDoc
BarcodeReader is the primary interface of the STRICH SDK.