Capture API
Methods to start a session
| Method | Description |
|---|---|
openCameraSelfie({listener, webAppToken}) | Opens the selfie camera, passing the process.webAppToken returned by Create Process |
openCameraDocument({documentType, listener}) | Opens the document camera with the desired DocumentType |
Capture options / parameters
DocumentType — see Enums.
Result types and fields
ResultCamera — object returned on successful capture (selfie or document).
| Field | Type | Description |
|---|---|---|
base64 | String | Captured image in Base64 |
encrypted | String | JWT to be sent to the backend |
SuccessResult — object returned by onSuccess in a Unico API integration.
| Field | Type | Description |
|---|---|---|
processId | String | Process identifier used to query the validation result via the REST API |