Building the SDK
Creating a FaceLiveness SDK Instance
To create an instance of FaceLiveness SDK
, use the FaceLiveness
class. This builder provides methods to configure the SDK according to your requirements.
Builder Methods
Parameter
Description
Required
setScreenCaptureEnabled(Boolean)
Enables or disables screen capture. Default: false
.
❌
setStage(CafStage)
Defines the environment stage (e.g., PROD
, BETA
). Default: PROD
.
❌
setLoadingScreen(Boolean)
Enables or disables the loading screen. Default: false
.
❌
setListener(CafLivenessListener)
Sets a listener for liveness verification events.
✅
Example Implementation (Flutter)
Below is an example of how to integrate the FaceLiveness SDK in Flutter. This setup includes configuring the builder, handling SDK events, and starting the liveness verification.
Last updated