BarcodeScannerOutputOptions
data class BarcodeScannerOutputOptions(val barcodeFormats: List<TargetBarcodeFormat>, val outputResolution: BarcodeScannerOutputResolution = BarcodeScannerOutputResolution.PREVIEW, val onBarcodeScanned: (barcodes: List<Barcode>) -> Unit, val onError: (error: Throwable) -> Unit)
Configuration options for a Barcode Scanner output.
See also
Constructors
Link copied to clipboard
constructor(barcodeFormats: List<TargetBarcodeFormat>, outputResolution: BarcodeScannerOutputResolution = BarcodeScannerOutputResolution.PREVIEW, onBarcodeScanned: (barcodes: List<Barcode>) -> Unit, onError: (error: Throwable) -> Unit)
Properties
Link copied to clipboard
Specifies the formats to be used for Barcode scanning.
Link copied to clipboard
Called whenever barcodes have been detected.
Link copied to clipboard
Controls which camera buffer resolution should be used: BarcodeScannerOutputResolution.PREVIEW (the default) prefers preview-sized buffers for lower latency, BarcodeScannerOutputResolution.FULL prefers full/highest available buffers for better detail.