Configuration
fun Configuration(cameraFacing: CameraFacing = CameraFacing.FRONT, cameraPreviewScaleType: CameraPreviewScaleType = CameraPreviewScaleType.FIT, isTorchEnabled: Boolean = false, captureMode: CaptureMode = CaptureMode.AUTO_CAPTURE, qualityAttributeThresholds: QualityAttributeThresholds = QualityAttributeThresholdPresets.standard, isPlaceholderVisible: Boolean = true, isDetectionLayerVisible: Boolean = false, sessionToken: String? = null)
Parameters
camera Facing
Front or back camera facing. Default value is CameraFacing.FRONT.
camera Preview Scale Type
The camera preview scale type. Default value is CameraPreviewScaleType.FIT.
is Torch Enabled
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
.
capture Mode
Capture mode. Default value is CaptureMode.AUTO_CAPTURE.
quality Attribute Thresholds
Quality attribute thresholds. Default value is QualityAttributeThresholdPresets.standard.
is Placeholder Visible
If placeholder for the face is visible. Default value is true
.
is Detection Layer Visible
If detection UI layer (tracking circle) is visible. Default value is false
.
session Token
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
.