barcodeScanner
Methods
getVersion()
warning
This API is experimental and may change in the future.
getVersion(): Promise<string>;
start()
warning
This API is experimental and may change in the future.
start(userOptions?: Omit<IBarcodeScannerOptions, 'scannerId'>): Promise<{
stop: () => Promise<void>;
onData: (listener: (data: string) => void) => void;
onError: (listener: (error: Error) => void) => void;
}>;