---
title: Antarmuka Callback / Listener
canonical: https://developer.unico.io/id/developers/sdks-and-tools/ios/api-reference/callback-listener-interfaces
locale: id
generated_by: markdown-export
---

- [/id/](/id/)
- [SDK dan Alat](/id/developers/sdks-and-tools/overview)
- [iOS SDK](/id/developers/sdks-and-tools/ios/requirements)
- Referensi API
- Antarmuka Callback / Listener

# Antarmuka Callback / Listener

AcessoBioManagerDelegate (lifecycle)
| Metode | Pemicu |
| --- | --- |
| `onErrorAcessoBioManager(_ error: ErrorBio!)` | Kesalahan implementasi selama operasi SDK |
| `onUserClosedCameraManually()` | Pengguna menutup kamera secara manual |
| `onSystemClosedCameraTimeoutSession()` | Sesi berakhir karena timeout (default: 40 detik) |
| `onSystemChangedTypeCameraTimeoutFaceInference()` | Tidak ada wajah terdeteksi selama 13 detik — pengambilan gambar beralih ke manual |

AcessoBioSelfieDelegate (selfie)
| Metode | Pemicu |
| --- | --- |
| `onSuccessSelfie(_ result: SelfieResult!)` | Pengambilan gambar selfie berhasil |
| `onSuccess(_ result: SuccessResult!)` | User Journey selesai — mengembalikan `processId`. Diperlukan dalam integrasi Unico API |
| `onErrorSelfie(_ errorBio: ErrorBio!)` | Pengambilan gambar selfie gagal |

AcessoBioDocumentDelegate (document)
| Metode | Pemicu |
| --- | --- |
| `onSuccessDocument(_ result: DocumentResult!)` | Pengambilan gambar dokumen berhasil |
| `onErrorDocument(_ errorBio: ErrorBio!)` | Pengambilan gambar dokumen gagal |

SelfieCameraDelegate / DocumentCameraDelegate (preparation)
| Metode | Pemicu |
| --- | --- |
| `onCameraReady(_ cameraOpener: AcessoBioCameraOpenerDelegate!)` | Kamera selfie siap dibuka |
| `onCameraFailed(_ message: ErrorPrepare!)` | Persiapan kamera selfie gagal |
| `onCameraReadyDocument(_ cameraOpener: AcessoBioCameraOpenerDelegate!)` | Kamera dokumen siap dibuka |
| `onCameraFailedDocument(_ message: ErrorPrepare!)` | Persiapan kamera dokumen gagal |

`ErrorPrepare`Tipe `ErrorPrepare` merupakan perluasan dari `ErrorBio`, sehingga memuat semua propertinya.

Terakhir diperbarui pada **23 Okt 2026**