Configuration

data class Configuration @JvmOverloads constructor(    val cameraFacing: CameraFacing = CameraFacing.FRONT,     val cameraPreviewScaleType: CameraPreviewScaleType = CameraPreviewScaleType.FIT,     val isTorchEnabled: Boolean = false,     val isVideoCaptureEnabled: Boolean = false,     val captureMode: CaptureMode = CaptureMode.AUTO_CAPTURE,     val qualityAttributeThresholds: QualityAttributeThresholds = QualityAttributeThresholdPresets.standard,     val minValidFramesInRowToStartCandidateSelection: Int = FaceAutoCaptureController.Configuration.DEFAULT_MIN_VALID_FRAMES_IN_ROW_TO_START_CANDIDATE_SELECTION,     val candidateSelectionDurationMillis: Int = FaceAutoCaptureController.Configuration.DEFAULT_CANDIDATE_SELECTION_DURATION_MILLIS,     val isPlaceholderVisible: Boolean = true,     val isDetectionLayerVisible: Boolean = false,     val sessionToken: String? = null,     val isCameraPreviewVisible: Boolean = true)

Configuration for the Face Auto Capture UI component.

Constructors

Link copied to clipboard
fun Configuration(    cameraFacing: CameraFacing = CameraFacing.FRONT,     cameraPreviewScaleType: CameraPreviewScaleType = CameraPreviewScaleType.FIT,     isTorchEnabled: Boolean = false,     isVideoCaptureEnabled: Boolean = false,     captureMode: CaptureMode = CaptureMode.AUTO_CAPTURE,     qualityAttributeThresholds: QualityAttributeThresholds = QualityAttributeThresholdPresets.standard,     minValidFramesInRowToStartCandidateSelection: Int = FaceAutoCaptureController.Configuration.DEFAULT_MIN_VALID_FRAMES_IN_ROW_TO_START_CANDIDATE_SELECTION,     candidateSelectionDurationMillis: Int = FaceAutoCaptureController.Configuration.DEFAULT_CANDIDATE_SELECTION_DURATION_MILLIS,     isPlaceholderVisible: Boolean = true,     isDetectionLayerVisible: Boolean = false,     sessionToken: String? = null,     isCameraPreviewVisible: Boolean = true)

Types

Link copied to clipboard
object Presets

Pre-defined sets of configurations.

Properties

Link copied to clipboard

Front or back camera facing. Default value is CameraFacing.FRONT.

Link copied to clipboard

The camera preview scale type. Default value is CameraPreviewScaleType.FIT.

Link copied to clipboard

Duration of candidate selection in milliseconds. Value must be greater than or equal to 0. Default value is 2_000.

Link copied to clipboard

Capture mode. Default value is CaptureMode.AUTO_CAPTURE.

Link copied to clipboard

If camera preview is visible. Default value is true.

Link copied to clipboard

If detection UI layer (tracking circle) is visible. Default value is false.

Link copied to clipboard

If placeholder for the face 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.

Minimum number of valid frames in a row to start candidate selection. Value must be greater than or equal to 1. Default value is 2.

Link copied to clipboard
Link copied to clipboard
val sessionToken: String? = null

Session token provided by DIS (Digital Identity Service). Set the session token if the result should be posted to DIS for evaluation. Default value is null.