Face Liveness Detector
+ A Composable function that initiates a face liveness detection session.
This function serves as a UI entry point for starting a session that detects if a face is live. It handles user feedback and session lifecycle events, such as success or error outcomes, using callback functions.
Parameters
A string token required to authorize the session. This token ensures that the session is valid.
An optional byte array representing the content of an image file used for verification. This can be specified during token creation or provided directly to this function. If available, it is used as part of the liveness detection process, comparing the live capture against this known image.
A required device correlation identifier. This ID must be specified either during session token creation or provided directly to this function. It is used for tracking and correlating sessions across devices.
A callback function invoked when the liveness detection session successfully completes. It receives a LivenessDetectionSuccess object containing details of the successful detection outcome. Implement this lambda to define how the application should respond to a successful liveness detection.
A callback function invoked when an error occurs during the liveness detection session. It receives a LivenessDetectionError object that provides details about the error, allowing the application to handle and respond to various error conditions appropriately.