Active Liveness Detection
Declaration
To view all the type aliases, go to the SybrinBiometrics class
Handling the doneLaunching
, success
, failure
or cancel
callbacks are optional but recommended.
Calling the function
Parameters
You have to send through the actions/questions as initialised objects. Use the code snippet below as a guide.
Then to add the actions when calling active liveness, you can simply pass it as a parameter on the function call, like so:
After executing liveness, the object inside the myQuestions
array will be modified and shouldn't be used for another liveness detection function call.
To reuse the same actions/questions for multiple liveness detections, you should initialise the array inline with the function call. Like so:
Handling callback responses
doneLaunching
The doneLaunching
callback will be executed after the view controller has successfully launched, or if the view controller failed to launch.
Parameters:
Example:
success
The success
callback will be executed after the session has finished and the view controller has been dismissed.
Parameters:
Example:
failure
The failure
callback will be executed after the session has failed and the view controller has been dismissed.
Parameters:
If you would like to report a bug, contact us!
Example:
cancel
The cancel
callback will be executed after the user has dismissed the view controller and before the session could finish.
Parameters:
None
Example:
Full Example
Last updated