onAddDataToResult

void onAddDataToResult(@NonNull() Intent result)

Callback for adding your own data to the Activity's result.

Called when the document has been analyzed and wasn't modified at the time the user tapped on the Next button.

You should add the results of the analysis as extras and retrieve them when the CameraActivity returns.

Note: you should call onDocumentAnalyzed after you've received the analysis results from the Gini API, otherwise this method won't be invoked.

Deprecated

When a GiniVision instance is available the document is analyzed internally by using the configured GiniVisionNetworkService implementation. The extractions will be returned in the extra called EXTRA_OUT_EXTRACTIONS of the CameraActivity's result Intent.

Parameters

result

the Intent which will be returned as the result data.