startScanner

abstract fun startScanner(configuration: BarcodeScannerScreenConfiguration, onResult: (Result<BarcodeScannerUiResult>) -> Unit, onCanceled: () -> Unit? = null)

Opens the Ready-To-Use UI Barcode Scanner screen with the desired configuration.

Parameters

configuration

The configuration for the barcode scanner screen.

onResult

Callback invoked with the scanning result.

onCanceled

Optional callback invoked if the scanner is canceled.