Capture API
Methods to start a session
| Method | Description |
|---|---|
prepareSelfieCamera(config, cameraType) | Prepares the selfie camera |
prepareDocumentCamera(config, documentType) | Prepares the document camera |
openCamera(listener) | Opens the camera after prepare |
Capture options / parameters
SelfieCameraType
| Value | Description |
|---|---|
SMART | SmartFrame capture with liveness |
NORMAL | Standard camera capture |
DocumentType
| Value | Description |
|---|---|
RG | Brazilian RG |
CNH | Brazilian driver's license |
CIN | Brazilian CIN |
PASSPORT | Brazilian Passport |
Result types and fields
ResultCamera — object returned on success.
| Field | Type | Description |
|---|---|---|
base64 | String | Captured image in Base64 |
encrypted | String | JWT to be sent to the backend |