AnalysisFragmentImpl

class AnalysisFragmentImpl extends AnalysisScreenContract.View

Constructors

AnalysisFragmentImpl
Link copied to clipboard
void AnalysisFragmentImpl(FragmentImplCallback fragment, Document document, String documentAnalysisErrorMessage)

Functions

createPresenter
Link copied to clipboard
getPdfPreviewSize
Link copied to clipboard
Size getPdfPreviewSize()
getPresenter
Link copied to clipboard
AnalysisScreenContract.Presenter getPresenter()
hideError
Link copied to clipboard

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

void hideError()
hideErrorSnackbar
Link copied to clipboard
void hideErrorSnackbar()
hidePdfPageCount
Link copied to clipboard
void hidePdfPageCount()
hideScanAnimation
Link copied to clipboard
void hideScanAnimation()
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.

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.

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

void setListener(AnalysisFragmentListener listener)
setPresenter
Link copied to clipboard
void setPresenter(AnalysisScreenContract.Presenter presenter)
abstract void setPresenter(P presenter)
showBitmap
Link copied to clipboard
void showBitmap(Bitmap bitmap, int rotationForDisplay)
showError
Link copied to clipboard

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

void showError(String message, int duration)
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)
showErrorSnackbar
Link copied to clipboard
showHints
Link copied to clipboard
void showHints(List<AnalysisHinthints)
abstract void showHints(List<AnalysisHinthints)
showPdfInfoPanel
Link copied to clipboard
void showPdfInfoPanel()
showPdfPageCount
Link copied to clipboard
void showPdfPageCount(String pageCount)
showPdfTitle
Link copied to clipboard
void showPdfTitle(String title)
showScanAnimation
Link copied to clipboard
void showScanAnimation()
startScanAnimation
Link copied to clipboard

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

void startScanAnimation()
stopScanAnimation
Link copied to clipboard

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

void stopScanAnimation()
waitForViewLayout
Link copied to clipboard
CompletableFuture<VoidwaitForViewLayout()