ReviewFragmentInterface

Methods which both Review Fragments must implement.

public interface ReviewFragmentInterface

Functions

onDocumentAnalyzed
Link copied to clipboard

You should call this method after you've received the analysis results from the Gini API.

This is important for managing the behavior of the Review Document Fragment when the Next button was clicked.

If the document has already been analyzed and the image wasn't changed when the user tapped the Next button, onDocumentReviewedAndAnalyzed is called and there is no need to show an AnalysisActivity or or AnalysisFragmentCompat .

If the document wasn't analyzed or the image was changed when the user tapped the Next button, onProceedToAnalysisScreen is called.

abstract void onDocumentAnalyzed()
onNoExtractionsFound
Link copied to clipboard

You should call this method after you've received the analysis results from the Gini API without the required extractions.

abstract void onNoExtractionsFound()
setListener
Link copied to clipboard

Set a listener for review events.

By default the hosting Activity is expected to implement the . In case that is not feasible you may set the listener using this method.

Note: the listener is expected to be available until the fragment is attached to an activity. Make sure to set the listener before that.

abstract void setListener(ReviewFragmentListener listener)

Inheritors

ReviewActivity
Link copied to clipboard
ReviewFragmentImpl
Link copied to clipboard
ReviewFragmentStandard
Link copied to clipboard
ReviewFragmentCompat
Link copied to clipboard