-
- All Implemented Interfaces:
public interface MultiPageReviewFragmentListenerInterface used by the MultiPageReviewFragment to dispatch events to the hosting Activity.
-
-
Method Summary
Modifier and Type Method Description abstract voidonProceedToAnalysisScreen(@NonNull() GiniCaptureMultiPageDocument document)Called when all pages were uploaded successfully and the user tapped on the "next" button. abstract voidonReturnToCameraScreen()Called when the user wants to add a picture of another page. abstract voidonImportedDocumentReviewCancelled()Called when the user deleted all the pages of a document received from another app. abstract voidonError(@NonNull() GiniCaptureError error)Called when an error occurred. -
-
Method Detail
-
onProceedToAnalysisScreen
abstract void onProceedToAnalysisScreen(@NonNull() GiniCaptureMultiPageDocument document)
Called when all pages were uploaded successfully and the user tapped on the "next" button.
If you use the Screen API you should start the AnalysisActivity and set the document as the EXTRA_IN_DOCUMENT extra.
If you use the Component API you should start the AnalysisFragmentCompat and pass the document when creating it with createInstance.
- Parameters:
document- contains the reviewed image (can be the original one or a modified image)
-
onReturnToCameraScreen
abstract void onReturnToCameraScreen()
Called when the user wants to add a picture of another page. Also called when the user has deleted every page and the document consisted of images taken with the Camera Screen or imported using the Camera Screen.
If you host the MultiPageReviewFragment in its own Activity, then you should simply finish the Activity.
If you use one Activity to host all the Gini Capture fragments, then you should display the CameraFragmentCompat again.
-
onImportedDocumentReviewCancelled
abstract void onImportedDocumentReviewCancelled()
Called when the user deleted all the pages of a document received from another app. This means the MultiPageReviewFragment was launched after a document had been created using createDocumentForImportedFiles.
At this point you should finish Gini Capture by closing the MultiPageReviewFragment and cleaning up using cleanup.
-
onError
abstract void onError(@NonNull() GiniCaptureError error)
Called when an error occurred.
- Parameters:
error- details about what went wrong
-
-
-
-