AnalysisScreenPresenter

Created by Alpar Szotyori on 08.05.2019. Copyright (c) 2019 Gini GmbH.

class AnalysisScreenPresenter extends AnalysisScreenContract.Presenter

Constructors

Functions

analyzeDocument
Link copied to clipboard
void analyzeDocument()
clearParcelableMemoryCache
Link copied to clipboard
void clearParcelableMemoryCache()
clearSavedImages
Link copied to clipboard
void clearSavedImages()
createDocumentRenderer
Link copied to clipboard
void createDocumentRenderer()
doAnalyzeDocument
Link copied to clipboard
void doAnalyzeDocument()
finish
Link copied to clipboard
void finish()
getActivity
Link copied to clipboard
Activity getActivity()
getHints
Link copied to clipboard
List<AnalysisHintgetHints()
getMultiPageDocument
Link copied to clipboard
getPdfFilename
Link copied to clipboard
String getPdfFilename(PdfDocument pdfDocument)
hideError
Link copied to clipboard

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

void hideError()
isStopped
Link copied to clipboard
boolean isStopped()
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()
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)
showAlertIfOpenWithDocumentAndAppIsDefault
Link copied to clipboard
CompletableFuture<VoidshowAlertIfOpenWithDocumentAndAppIsDefault(GiniVisionDocument document, FileImportHelper.ShowAlertCallback showAlertCallback)
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)
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)
start
Link copied to clipboard
void start()
startScanAnimation
Link copied to clipboard

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

void startScanAnimation()
stop
Link copied to clipboard
void stop()
stopScanAnimation
Link copied to clipboard

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

void stopScanAnimation()

Properties

mDocumentRenderer
Link copied to clipboard
DocumentRenderer mDocumentRenderer
PARCELABLE_MEMORY_CACHE_TAG
Link copied to clipboard
final static String PARCELABLE_MEMORY_CACHE_TAG