---
title: 回调 / 监听器接口
canonical: https://developer.unico.io/zh-CN/developers/sdks-and-tools/ios/api-reference/callback-listener-interfaces
locale: zh-CN
generated_by: markdown-export
---

- [/zh-CN/](/zh-CN/)
- [SDK 与工具](/zh-CN/developers/sdks-and-tools/overview)
- [iOS SDK](/zh-CN/developers/sdks-and-tools/ios/requirements)
- API 参考
- 回调 / 监听器接口

# 回调 / 监听器接口

AcessoBioManagerDelegate（生命周期）
| 方法 | 触发条件 |
| --- | --- |
| `onErrorAcessoBioManager(_ error: ErrorBio!)` | SDK 操作期间发生实现错误 |
| `onUserClosedCameraManually()` | 用户手动关闭摄像头 |
| `onSystemClosedCameraTimeoutSession()` | 会话因超时而过期（默认：40 秒） |
| `onSystemChangedTypeCameraTimeoutFaceInference()` | 13 秒内未检测到人脸 — 采集切换为手动模式 |

AcessoBioSelfieDelegate（自 拍）
| 方法 | 触发条件 |
| --- | --- |
| `onSuccessSelfie(_ result: SelfieResult!)` | 自拍采集成功 |
| `onSuccess(_ result: SuccessResult!)` | 用户旅程完成 — 返回 `processId`。在 Unico API 集成中为必需 |
| `onErrorSelfie(_ errorBio: ErrorBio!)` | 自拍采集失败 |

AcessoBioDocumentDelegate（文件）
| 方法 | 触发条件 |
| --- | --- |
| `onSuccessDocument(_ result: DocumentResult!)` | 文件采集成功 |
| `onErrorDocument(_ errorBio: ErrorBio!)` | 文件采集失败 |

SelfieCameraDelegate / DocumentCameraDelegate（准备）
| 方法 | 触发条件 |
| --- | --- |
| `onCameraReady(_ cameraOpener: AcessoBioCameraOpenerDelegate!)` | 自拍摄像头已准备好可以打开 |
| `onCameraFailed(_ message: ErrorPrepare!)` | 自拍摄像头准备失败 |
| `onCameraReadyDocument(_ cameraOpener: AcessoBioCameraOpenerDelegate!)` | 文件摄像头已准备好可以打开 |
| `onCameraFailedDocument(_ message: ErrorPrepare!)` | 文件摄像头准备失败 |

`ErrorPrepare``ErrorPrepare` 类型是 `ErrorBio` 的扩展，因此包含其所有属性。

最后更新 于 **2026年10月23日**