onShouldAnalyzeDocument

abstract void onShouldAnalyzeDocument(@NonNull() Document document)

Called when the Review Fragment was started and you should start analyzing the original document by sending it to the Gini API.

We assume that in most cases the photo is good enough and this way we are able to provide analysis results quicker.

Note: Call onDocumentAnalyzed or onDocumentAnalyzed when the analysis is done and your Activity wasn't stopped.

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 Analysis Screen in onExtractionsAvailable.

Parameters

document

contains the original image taken by the camera