Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The diagram below shows the interaction between your app and the SDK:

Drawio
mVer2
zoom1
simple0
zoominComment10
inCommentcustContentId012124413
pageId2982265
custContentIdlbox121244131
diagramDisplayNameUntitled Diagram-1683895745279.drawio
lbox1
contentVer2
revision2
baseUrlhttps://gini.atlassian.net/wiki
diagramNameUntitled Diagram-1683895745279.drawio
pCenter0
width860
links
tbstyle
height379.5

...

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:

...