ReviewFragmentImpl

Internal use only.

class ReviewFragmentImpl implements ReviewFragmentInterface

Constructors

ReviewFragmentImpl
Link copied to clipboard
void ReviewFragmentImpl(FragmentImplCallback fragment, Document document)

Functions

getImageDocument
Link copied to clipboard
TouchImageView getImageDocument()
onCreate
Link copied to clipboard
void onCreate(Bundle savedInstanceState)
onCreateView
Link copied to clipboard
onDestroy
Link copied to clipboard
void onDestroy()
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.

void onDocumentAnalyzed()
onNextClicked
Link copied to clipboard
void onNextClicked()
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.

void onNoExtractionsFound()
onSaveInstanceState
Link copied to clipboard
void onSaveInstanceState(Bundle outState)
onStart
Link copied to clipboard
void onStart()
onStop
Link copied to clipboard
void onStop()
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.

void setListener(ReviewFragmentListener listener)

Properties

mButtonRotate
Link copied to clipboard
ImageButton mButtonRotate
mPhoto
Link copied to clipboard
Photo mPhoto