CameraConfiguration

data class CameraConfiguration(val facing: CameraFacing, val previewScaleType: CameraPreviewScaleType = CameraPreviewScaleType.FIT, val isTorchEnabled: Boolean = false, val isVideoCaptureEnabled: Boolean = false, val isPreviewVisible: Boolean = true)

Configuration for components utilizing a camera.

Constructors

Link copied to clipboard
constructor(facing: CameraFacing, previewScaleType: CameraPreviewScaleType = CameraPreviewScaleType.FIT, isTorchEnabled: Boolean = false, isVideoCaptureEnabled: Boolean = false, isPreviewVisible: Boolean = true)

Properties

Link copied to clipboard

Front or back camera facing.

Link copied to clipboard

If camera preview is visible. Default value is true.

Link copied to clipboard
val isTorchEnabled: Boolean = false

If torch is enabled during the process. If the camera doesn't have a flash unit, then this setting will be ignored. Default value is false.

Link copied to clipboard

If video capture is enabled. When enabled, the recording duration is limited to a maximum of 8 seconds, corresponding to the end of the processing session. The captured video is included exclusively in the binary content of the result. Default value is false.

Link copied to clipboard

Preview scale type. Default value is CameraPreviewScaleType.FIT.