Callback / Listener interfaces
AcessoBioManagerDelegate (lifecycle)
| Method | Trigger |
|---|---|
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)
| Method | Trigger |
|---|---|
onSuccessSelfie(_ result: SelfieResult!) | Selfie capture succeeded |
onErrorSelfie(_ errorBio: ErrorBio!) | Selfie capture failed |
AcessoBioDocumentDelegate (document)
warning
For security reasons, iOS SDK 3.5.0 and later no longer include the native document capture. The public API still exists for now, but calling it returns error 73905, "Unable to open document camera". It will be removed in an upcoming version. For more information, contact your CSM.
| Method | Trigger |
|---|---|
onSuccessDocument(_ result: DocumentResult!) | Deprecated. Never called since iOS SDK 3.5.0. Document capture succeeded |
onErrorDocument(_ errorBio: ErrorBio!) | Deprecated since iOS SDK 3.5.0. Document capture failed |
SelfieCameraDelegate / DocumentCameraDelegate (preparation)
| Method | Trigger |
|---|---|
onCameraReady(_ cameraOpener: AcessoBioCameraOpenerDelegate!) | Selfie camera is ready to be opened |
onCameraFailed(_ message: ErrorPrepare!) | Selfie camera preparation failed |
onCameraReadyDocument(_ cameraOpener: AcessoBioCameraOpenerDelegate!) | Deprecated. Never called since iOS SDK 3.5.0. Document camera is ready to be opened |
onCameraFailedDocument(_ message: ErrorPrepare!) | Deprecated since iOS SDK 3.5.0. Document camera preparation failed |
ErrorPrepareThe ErrorPrepare type is an extension of ErrorBio, thus containing all of its properties.