MrzScannerCustomUI

fun MrzScannerCustomUI(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, mrzScanningEnabled: Boolean = true, mrzScannerConfiguration: MrzScannerConfiguration = MrzScannerConfiguration(), finderConfiguration: FinderConfiguration = defaultMrzFinderConfiguration, permissionView: () -> Unit = {}, onMrzScanningResult: (Result<MrzScannerResult>) -> Unit = {})

Composable Mrz 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 mrzs.

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).

mrzScanningEnabled

Enables or disables mrz detection process.

mrzScannerConfiguration

Configuration for the mrz scanner. All mrz parameters. See MrzScannerConfiguration.

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.

onMrzScanned

Callback invoked each frame when mrzs are scanned. Provides MrzScannerResult.