SDK Lifecycle
CafVerifyPolicyListener
The CafVerifyPolicyListener
closure handles key events during the SDK's authentication:
Event
Description
onCanceled(failure: CafSmartAuthError)
Triggered when the user cancels the process, with error details provided in failure
.
onError(failure: CafSmartAuthError)
Called on SDK failure, with error details provided in failure
.
onPending(isAuthorized: Bool, attestation: String)
Called when the SDK is waiting for a result.
onLoaded()
Triggered when the SDK is ready.
onLoading()
Indicates the SDK is initializing.
onSuccess(isAuthorized: Bool, attemptId: String?, attestation: String?)
Called upon successful detection, with the result provided.
Example
Last updated