LivenessCheckMessages constructor
const
LivenessCheckMessages({
- String title = 'Liveness Check',
- String initializingCamera = 'Initializing camera...',
- String noFaceDetected = 'No face detected. Please position your face in the circle.',
- String multipleFacesDetected = 'Multiple faces detected. Only one person allowed.',
- String moveCloserToCamera = 'Move closer to camera or hold device steady.',
- String holdStill = 'Hold still. Face features not clear.',
- String imageTooBlurry = 'Image too blurry. Hold device steady.',
- String poorLighting = 'Poor lighting conditions.',
- String livenessCheckPassed = 'Liveness check passed! Taking photo...',
- String takingPhoto = 'Taking photo...',
- String failedToCapture = 'Failed to capture photo',
- String cameraPermissionDenied = 'Camera permission denied',
- String failedToInitializeCamera = 'Failed to initialize camera',
- String eyesClosed = 'Please open your eyes.',
- String maskDetected = 'Please remove your mask.',
- String spoofingDetected = 'Spoofing detected. Please use a real face.',
- String tryAgainButtonText = 'Try Again',
- PermissionDialogConfig permissionDialogConfig = const PermissionDialogConfig(),
Creates liveness check messages.
Implementation
const LivenessCheckMessages({
this.title = 'Liveness Check',
this.initializingCamera = 'Initializing camera...',
this.noFaceDetected =
'No face detected. Please position your face in the circle.',
this.multipleFacesDetected =
'Multiple faces detected. Only one person allowed.',
this.moveCloserToCamera = 'Move closer to camera or hold device steady.',
this.holdStill = 'Hold still. Face features not clear.',
this.imageTooBlurry = 'Image too blurry. Hold device steady.',
this.poorLighting = 'Poor lighting conditions.',
this.livenessCheckPassed = 'Liveness check passed! Taking photo...',
this.takingPhoto = 'Taking photo...',
this.failedToCapture = 'Failed to capture photo',
this.cameraPermissionDenied = 'Camera permission denied',
this.failedToInitializeCamera = 'Failed to initialize camera',
this.eyesClosed = 'Please open your eyes.',
this.maskDetected = 'Please remove your mask.',
this.spoofingDetected = 'Spoofing detected. Please use a real face.',
this.tryAgainButtonText = 'Try Again',
this.permissionDialogConfig = const PermissionDialogConfig(),
});