BarcodeScannerOutputOptions

interface BarcodeScannerOutputOptions

Extended by

Properties

barcodeFormats

barcodeFormats: TargetBarcodeFormat[]

Specifies the formats to be used for Barcode scanning.

If you want to detect all kinds of barcodes, use ['all']


onBarcodeScanned()

onBarcodeScanned: (barcodes: Barcode[]) => void

Called whenever barcodes have been detected.


onError()

onError: (error: Error) => void

Called when there was an error detecting barcodes.


outputResolution?

optional outputResolution: BarcodeScannerOutputResolution

Controls which camera buffer resolution should be used.

  • 'preview': Prefer preview-sized buffers for lower latency.
  • 'full': Prefer full/highest available buffers for better detail.

Default

'preview'