FaceLivenessEvent class abstract
FaceLivenessEvent
is an abstract class representing different types of events.
It is used to create an instance of one of the event subclasses based on a map input, which comes from the SDK's result.
Depending on the event type, it creates an instance of either
FaceLivenessEventConnecting
, FaceLivenessEventConnected
,
FaceLivenessEventClosed
, FaceLivenessEventFailure
or FaceLivenessEventSuccess
. If the event is not recognized,
it throws an internal exception.
This setup allows for a structured and type-safe way to handle different outcomes of the document capture process in the SDK.
Constructors
- FaceLivenessEvent.fromMap(Map map)
-
factory
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- canceledEvent → const String
- connectedEvent → const String
- connectingEvent → const String
- failureEvent → const String
- resultMappingError → const String
- successEvent → const String
- validatedEvent → const String
- validatingEvent → const String