Configuration
fun Configuration( cameraFacing: CameraFacing = CameraFacing.FRONT, cameraPreviewScaleType: CameraPreviewScaleType = CameraPreviewScaleType.FIT, torchEnabled: Boolean = false, faceSizeRatioInterval: IntervalDouble = IntervalDouble(0.1, 0.3), qualityAttributeThresholds: QualityAttributeThresholds = QualityAttributeThresholdPresets.standard, isDetectionLayerVisible: Boolean = false, sessionToken: String? = null)
Parameters
cameraFacing
Front or back camera facing. Default value is CameraFacing.FRONT.
cameraPreviewScaleType
The camera preview scale type. Default value is CameraPreviewScaleType.FIT.
torchEnabled
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
.
faceSizeRatioInterval
Face size to shorter preview container side ratio interval. Default value is [0.1, 0.3]
.
qualityAttributeThresholds
Quality attribute thresholds. Default value is QualityAttributeThresholdPresets.standard.
isDetectionLayerVisible
If detection UI layer (tracking circle) is visible. Default value is false
.
sessionToken
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
.