public interface MultiPageReviewFragmentListener
MultiPageReviewFragment
to dispatch events to the hosting
Activity.Modifier and Type | Method and Description |
---|---|
void |
onImportedDocumentReviewCancelled()
Called when the user deleted all the pages of a document received from another app.
|
void |
onProceedToAnalysisScreen(GiniVisionMultiPageDocument document)
Called when all pages were uploaded successfully and the user tapped on the "next" button.
|
void |
onReturnToCameraScreen()
Called when the user wants to add a picture of another page.
|
void onProceedToAnalysisScreen(GiniVisionMultiPageDocument document)
If you use the Screen API you should start the AnalysisActivity
and set the
document as the AnalysisActivity.EXTRA_IN_DOCUMENT
extra.
If you use the Component API you should start the AnalysisFragmentCompat
(or the
AnalysisFragmentStandard
) and pass the document when creating it with AnalysisFragmentCompat.createInstance(Document, String)
(or AnalysisFragmentStandard.createInstance(Document, String)
).
document
- contains the reviewed image (can be the original one or a modified image)void onReturnToCameraScreen()
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 GVL fragments, then you should display the
CameraFragmentCompat
(or the CameraFragmentStandard
) again.
void onImportedDocumentReviewCancelled()
MultiPageReviewFragment
was launched after a document had been created
using GiniVision.createDocumentForImportedFiles(Intent, Context, AsyncCallback)
.
At this point you should finish GVL by closing the MultiPageReviewFragment
and
cleaning up using GiniVision.cleanup(Context)
.