SDK Lifecycle
CafVerifyPolicyListener
The CafVerifyPolicyListener
interface handles key events during the SDK's authentication:
Event
Description
onCancel()
Triggered when the user cancels the process.
onError(failure: CafFailure)
Called on SDK failure, with error details provided.
onPending(isAuthorized: Boolean, attestation: String)
Called when the SDK is waiting for the a result.
onLoaded()
Triggered when the finished an operation.
onLoading()
Indicates the SDK is starting an operation.
onSuccess(isAuthorized: Boolean, attemptId: String?, attestation: String?)
Called upon successful detection, with the result provided.
Example
Last updated