Skip to main content

Callback / Listener interfaces

AcessoBioManagerDelegate (lifecycle)
MethodTrigger
onErrorAcessoBioManager(_ error: ErrorBio!)Implementation error during SDK operation
onUserClosedCameraManually()User closed the camera manually
onSystemClosedCameraTimeoutSession()Session expired due to timeout (default: 40 s)
onSystemChangedTypeCameraTimeoutFaceInference()No face detected for 13 s — capture switches to manual
AcessoBioSelfieDelegate (selfie)
MethodTrigger
onSuccessSelfie(_ result: SelfieResult!)Selfie capture succeeded
onErrorSelfie(_ errorBio: ErrorBio!)Selfie capture failed
AcessoBioDocumentDelegate (document)
MethodTrigger
onSuccessDocument(_ result: DocumentResult!)Document capture succeeded
onErrorDocument(_ errorBio: ErrorBio!)Document capture failed
SelfieCameraDelegate / DocumentCameraDelegate (preparation)
MethodTrigger
onCameraReady(_ cameraOpener: AcessoBioCameraOpenerDelegate!)Selfie camera is ready to be opened
onCameraFailed(_ message: ErrorPrepare!)Selfie camera preparation failed
onCameraReadyDocument(_ cameraOpener: AcessoBioCameraOpenerDelegate!)Document camera is ready to be opened
onCameraFailedDocument(_ message: ErrorPrepare!)Document camera preparation failed
ErrorPrepare

The ErrorPrepare type is an extension of ErrorBio, thus containing all of its properties.