Configuration
data class Configuration @JvmOverloads constructor(val cameraFacing: CameraFacing = CameraFacing.FRONT, val cameraPreviewScaleType: CameraPreviewScaleType = CameraPreviewScaleType.FIT, val torchEnabled: Boolean = false, val faceSizeRatioInterval: IntervalDouble = IntervalDouble(0.1, 0.3), val isDetectionLayerVisible: Boolean = false, val sessionToken: String? = null, qualityAttributeThresholds: QualityAttributeThresholds = QualityAttributeThresholds(QualityAttributeThresholds.NeutralExpressionPhase(), QualityAttributeThresholds.SmileExpressionPhase()))
Configuration for the Smile Liveness UI component.
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.
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
.
face Size Ratio Interval
Face size to shorter preview container side ratio interval. Default value is [0.1, 0.3]
.
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
.
Constructors
Link copied to clipboard
fun Configuration(cameraFacing: CameraFacing = CameraFacing.FRONT, cameraPreviewScaleType: CameraPreviewScaleType = CameraPreviewScaleType.FIT, torchEnabled: Boolean = false, faceSizeRatioInterval: IntervalDouble = IntervalDouble(0.1, 0.3), isDetectionLayerVisible: Boolean = false, sessionToken: String? = null, qualityAttributeThresholds: QualityAttributeThresholds = QualityAttributeThresholds(QualityAttributeThresholds.NeutralExpressionPhase(), QualityAttributeThresholds.SmileExpressionPhase()))