---
title: 采集 API
canonical: https://developer.unico.io/zh-CN/developers/sdks-and-tools/flutter/api-reference/capture-api
locale: zh-CN
generated_by: markdown-export
---

- [/zh-CN/](/zh-CN/)
- [SDK 与工具](/zh-CN/developers/sdks-and-tools/overview)
- [Flutter SDK](/zh-CN/developers/sdks-and-tools/flutter/requirements)
- API 参考
- 采集 API

# 采集 API

启动会话的方法
| 方法 | 说明 |
| --- | --- |
| `openCameraSelfie({listener, webAppToken})` | 打开自拍摄像头，传入 Create Process 返回的 `process.webAppToken` |
| `openCameraDocument({documentType, listener})` | 打开文件摄像头，使用指定的 `DocumentType` |

采集选项 / 参数
**`DocumentType`** — 参见[枚举](/zh-CN/developers/sdks-and-tools/flutter/api-reference/enums)。

结果类型与字段
**`ResultCamera`** — 采集成功（自拍或文件）时返回的对象。

| 字段 | 类型 | 说明 |
| --- | --- | --- |
| `base64` | `String` | Base64 格式的采集图像 |
| `encrypted` | `String` | 待发送至后端的 JWT |

**`SuccessResult`** — 在 Unico API 集成中由 `onSuccess` 返回的对象。

| 字段 | 类型 | 说明 |
| --- | --- | --- |
| `processId` | `String` | 用于通过 REST API 查询验证结果的流程标识符 |

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