Configuration

data class Configuration @JvmOverloads constructor(val cameraFacing: CameraFacing = CameraFacing.FRONT, val cameraPreviewScaleType: CameraPreviewScaleType = CameraPreviewScaleType.FIT, val isTorchEnabled: Boolean = false, val faceSizeRatioInterval: IntervalDouble = IntervalDouble(0.1, 0.3), val isDetectionLayerVisible: Boolean = false, val query: FaceDetectionQuery = FaceDetectionQuery(), val sessionToken: String? = null)

Configuration for the MagnifEye Liveness UI component.

Constructors

Link copied to clipboard
fun Configuration(cameraFacing: CameraFacing = CameraFacing.FRONT, cameraPreviewScaleType: CameraPreviewScaleType = CameraPreviewScaleType.FIT, isTorchEnabled: Boolean = false, faceSizeRatioInterval: IntervalDouble = IntervalDouble(0.1, 0.3), isDetectionLayerVisible: Boolean = false, query: FaceDetectionQuery = FaceDetectionQuery(), sessionToken: String? = null)

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

Face size to shorter preview container side ratio interval. Default value is [0.1, 0.3].

Link copied to clipboard

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

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

Query for extra evaluations. It allows for additional processing beyond basic face detection. The default, FaceDetectionQuery, signifies no extra evaluations and is optimized for speed.

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.