BarcodeScannerCustomUI

fun BarcodeScannerCustomUI(modifier: <Error class: unknown class> = Modifier, cameraEnabled: Boolean = true, cameraModule: CameraModule = CameraModule.BACK, cameraPreviewMode: CameraPreviewMode = CameraPreviewMode.FILL_IN, minFocusDistanceLock: Boolean = false, touchToFocusEnabled: Boolean = false, torchEnabled: Boolean = false, zoomLevel: Float = 1.0f, barcodeScanningEnabled: Boolean = true, barcodeScannerConfiguration: BarcodeScannerConfiguration = BarcodeScannerConfiguration(), finderConfiguration: FinderConfiguration? = FinderConfiguration(), arPolygonView: (<Error class: unknown class><Pair<BarcodeScannerResult, FrameHandler.Frame>?>) -> Unit = { _ -> }, permissionView: () -> Unit = {}, onBarcodeScanningResult: (Result<BarcodeScannerResult>) -> Unit = {})

Composable Barcode Scanner with customizable UI.

Parameters

modifier

Modifier to be applied to the scanner view.

cameraEnabled

Enables or disables the camera in the scanner.

cameraModule

Selects the camera module (front or back).

cameraPreviewMode

Sets the mode of the camera preview FIT_IN or FILL_IN.

minFocusDistanceLock

Locks the focus distance to minimum for close up scanning. eg. micro barcodes.

touchToFocusEnabled

Enables touch to focus functionality.

torchEnabled

Enables or disables the torch (flashlight).

zoomLevel

Sets the zoom level of the camera (1.0 to 5.0 if supported by the device).

barcodeScanningEnabled

Enables or disables barcode detection process.

barcodeScannerConfiguration

Configuration for the barcode scanner. All barcodes parameters, types. etc. See BarcodeScannerConfiguration.

finderConfiguration

Configuration for the finder overlay. See FinderConfiguration.

arPolygonView

Composable slot to display AR polygon view over the camera preview.

permissionView

Composable slot to display view when camera permission is not granted.

onBarcodesScanned

Callback invoked each frame when barcodes are scanned. Provides BarcodeScannerResult.