Document Scanner Custom UI
Composable Document Scanner with customizable UI.
Parameters
Modifier to be applied to the scanner view.
Enables or disables the camera in the scanner.
Selects the camera module (front or back).
Sets the mode of the camera preview FIT_IN or FILL_IN.
Enables touch to focus functionality.
Enables or disables the torch (flashlight).
Enables or disables snap animation (preview white flash) when picture is taken.
Sets the zoom level of the camera (1.0 to 5.0 if supported by the device).
Enables or disables document detection process.
Configuration for the auto-snapping behavior. See AutoSnappingConfiguration.
Configuration for the document scanner. All document scanning parameters, aspect ratios size ratios. etc. See DocumentScannerConfiguration.
Configuration for the finder overlay. See FinderConfiguration.
Composable slot to display AR polygon view over the camera preview.
Composable slot to display view when camera permission is not granted.
Callback invoked each frame when document found. Provides DocumentDetectionResult.
Callback invoked when TakePictureActionController is created. Use this controller to trigger picture taking manually.
Callback invoked when take picture action is called.
Callback invoked when take picture action is canceled.
Callback invoked when picture is taken successfully. Provides ImageRef and CaptureInfo.
Callback that is called right before auto-snapping should be triggered. Return true to allow auto-snapping, false to prevent it.