onProceedToAnalysisScreen

abstract void onProceedToAnalysisScreen(@NonNull() Document document)

Called if you didn't call onDocumentAnalyzed or onDocumentAnalyzed (or the image was changed) and the user tapped on the Next button.

You should start your Activity extending AnalysisActivity and set the document as the EXTRA_IN_DOCUMENT extra.

Deprecated

When a GiniVision instance is available onProceedToAnalysisScreen is invoked instead.

Parameters

document

contains the reviewed image (can be the original one or a modified image)

abstract void onProceedToAnalysisScreen(@NonNull() Document document, @Nullable() String errorMessage)

Called when the user tapped on the Next button and one of the following conditions apply:

  • Analysis is in progress
  • Analysis completed with an error
  • The image was rotated

    You should start your Activity extending AnalysisActivity and set the document as the EXTRA_IN_DOCUMENT extra.

Parameters

document

contains the reviewed image (can be the original one or a modified image)

errorMessage

an optional error message to be passed to the Analysis Screen