SDK Lifecycle
CafLivenessListener
The CafLivenessListener
interface handles key events during the SDK's liveness detection process:
Event | Description |
---|---|
onCancel() | Triggered when the user cancels the process. |
onError(sdkFailure: CafLivenessError) | Called on SDK failure, with error details provided. |
onLoaded() | Triggered when the SDK is ready, if the loading screen is disabled. |
onLoading() | Indicates the SDK is initializing, called if no loading screen is shown. |
onSuccess(livenessResult: CafLivenessResult) | Called upon successful detection, with the result in |
Example
Last updated