AnalysisFragmentListener

Interface used by AnalysisFragmentStandard and AnalysisFragmentCompat to dispatch events to the hosting Activity.

public interface AnalysisFragmentListener

Functions

onAnalyzeDocument
Link copied to clipboard

Called when the Analyze Document Fragment is started and the document can be analyzed.

abstract void onAnalyzeDocument(Document document)
onDefaultPDFAppAlertDialogCancelled
Link copied to clipboard

Called when the default PDF app alert dialog was cancelled. You should close the AnalysisFragment because the user decided not to continue with analysis.

This alert dialog is shown for PDFs imported from another app when your app was set as default for opening PDFs.

abstract void onDefaultPDFAppAlertDialogCancelled()
onError
Link copied to clipboard

Called when an error occurred.

abstract void onError(GiniVisionError error)
onExtractionsAvailable
Link copied to clipboard

Called when the document has been analyzed and extractions are available.

abstract void onExtractionsAvailable(Map<String, GiniVisionSpecificExtractionextractions)
onProceedToNoExtractionsScreen
Link copied to clipboard

Called when the document has been analyzed and no extractions were received.

You should show the NoResultsFragmentStandard or NoResultsFragmentCompat .

abstract void onProceedToNoExtractionsScreen(Document document)

Inheritors

AnalysisActivity
Link copied to clipboard