LivenessController class
Controller for liveness detection session
- Inheritance
-
- Object
- ChangeNotifier
- LivenessController
Constructors
-
LivenessController.new({required List<
CameraDescription> cameras, LivenessConfig? config, LivenessTheme? theme, CameraService? cameraService, FaceDetectionService? faceDetectionService, MotionService? motionService, List<ChallengeType> ? challengeTypes, ChallengeCompletedCallback? onChallengeCompleted, LivenessCompletedCallback? onLivenessCompleted, dynamic onFinalImageCaptured(String sessionId, XFile imageFile, Map<String, dynamic> metadata)?, bool captureFinalImage = true}) - Constructor
Properties
- cameraController → CameraController?
-
Camera controller
no setter
- config → LivenessConfig
-
Current configuration
no setter
- currentState → LivenessState
-
Current state of liveness detection
no setter
- faceCenteringMessage → String
-
Face centering message
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasListeners → bool
-
Whether any listeners are currently registered.
no setterinherited
- isFaceDetected → bool
-
Whether a face is currently detected
no setter
- isInitialized → bool
-
Whether camera is initialized
no setter
- isLightingGood → bool
-
Whether lighting conditions are good
no setter
- isVerificationSuccessful → bool
-
Whether verification was successful
no setter
- lightingValue → double
-
Current lighting value (0.0-1.0)
no setter
- progress → double
-
Progress as percentage (0.0-1.0)
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- session → LivenessSession
-
Current liveness session
no setter
- sessionId → String
-
Session ID
no setter
- statusMessage → String
-
Current status message
no setter
- theme → LivenessTheme
-
Current theme
no setter
Methods
-
addListener(
VoidCallback listener) → void -
Register a closure to be called when the object changes.
inherited
-
captureImage(
) → Future< XFile?> - Capture current image as a file
-
dispose(
) → void -
Clean up resources
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
notifyListeners(
) → void -
Call all the registered listeners.
inherited
-
removeListener(
VoidCallback listener) → void -
Remove a previously registered closure from the list of closures that are
notified when the object changes.
inherited
-
resetSession(
) → void - Reset the session
-
toString(
) → String -
A string representation of this object.
inherited
-
updateConfig(
LivenessConfig config) → void - Update configuration
-
updateTheme(
LivenessTheme theme) → void - Update theme
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited