...
The diagram below shows the interaction between your app and the SDK:
Drawio | ||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
...
The CameraActivity
can return with the following result codes:
Activity.RESULT_OK
A document was analyzed and the extractions are available in the EXTRA_OUT_EXTRACTIONS
result extra. It contains a Bundle
with the extraction labels as keys and GiniCaptureSpecificExtraction
parcelables as values.
Activity.RESULT_CANCELED
The user
...
canceled Gini Capture SDK.
CameraActivity.RESULT_ERROR
An error occurred and the details are available in the EXTRA_OUT_ERROR
result extra. It contains a parseable extra of type GiniCaptureError
detailing what went wrong.
CameraActivity.RESULT_ENTER_MANUALLY
The document analysis finished with no results or an error and the user clicked the Enter manually button on either the No Results Screen or the Error Screen. Your app should proceed with allowing your user to enter the payment information manually.
In the following example, you can see how to launch Gini Capture SDK and how to handle the results:
...