AnalysisFragmentInterface

Methods which both Analysis Fragments must implement.

public interface AnalysisFragmentInterface

Functions

hideError
Link copied to clipboard

Call this method to hide the error shown before with showError or showError .

abstract void hideError()
onDocumentAnalyzed
Link copied to clipboard

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

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 analysis events.

By default the hosting Activity is expected to implement the AnalysisFragmentListener . 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(AnalysisFragmentListener listener)
showError
Link copied to clipboard

Call this method when you need to show an error message to the user in the Analysis Screen.

abstract void showError(String message, int duration)

Call this method when you need to show an error message with an invokable action to the user in the Analysis Screen.

abstract void showError(String message, String buttonTitle, View.OnClickListener onClickListener)
startScanAnimation
Link copied to clipboard

You should call this method when you start the document analysis using the Gini API.

abstract void startScanAnimation()
stopScanAnimation
Link copied to clipboard

You should call this method when the document analysis has finished.

abstract void stopScanAnimation()

Inheritors

AnalysisFragmentCompat
Link copied to clipboard
AnalysisActivity
Link copied to clipboard
AnalysisFragmentStandard
Link copied to clipboard
AnalysisScreenContract
Link copied to clipboard
AnalysisScreenContract
Link copied to clipboard