SDK Lifecycle
CafFaceLivenessDelegate
The CafFaceLivenessDelegate
protocol handles key events during the SDK's liveness detection process:
Event
Description
cancelled()
Triggered when the user cancels the process.
didFinishWithError(sdkFailure: CafSDKFailure)
Called on SDK failure, with error details provided in sdkFailure
.
loaded()
Triggered when the SDK is ready, if the loading screen is disabled.
loading()
Indicates the SDK is initializing, called if no loading screen is shown.
didFinishWithSuccess(livenessResult: CafLivenessResult)
Called upon successful detection, with the result in livenessResult.signedResponse
.
Example
Last updated
Was this helpful?