Building the SDK
Creating a Liveness SDK instance
In order to create an instance of CafFaceLivenessSDK
, we need to use our CafFaceLivenessBuilder
. This allows you to configure all necessary configurations.
Builder Methods
Parameter
Required
Description
setStage(CAFStage)
No
Defines the environment stage (e.g., .prod
, .beta
). Default is .prod
.
setImageUrlExpirationTime(String)
No
Sets the expiration time for the image URL used in the scan capture. Default is "3H"
.
setLoadingScreen(Bool)
No
Enables or disables the default loading screen during SDK loading events. Default is false
.
delegate = self
Yes
Sets the delegate to handle liveness verification events.
Example
Last updated
Was this helpful?