-
- All Implemented Interfaces:
public interface AnalysisFragmentListenerInterface used by AnalysisFragmentCompat to dispatch events to the hosting Activity.
-
-
Method Summary
Modifier and Type Method Description abstract voidonError(@NonNull() GiniCaptureError error)Called when an error occurred. abstract voidonExtractionsAvailable(@NonNull() Map<String, GiniCaptureSpecificExtraction> extractions, @NonNull() Map<String, GiniCaptureCompoundExtraction> compoundExtractions, @NonNull() List<GiniCaptureReturnReason> returnReasons)Called when the document has been analyzed and extractions are available. abstract voidonProceedToNoExtractionsScreen(@NonNull() Document document)Called when the document has been analyzed and no extractions were received. abstract voidonDefaultPDFAppAlertDialogCancelled()Called when the default PDF app alert dialog was cancelled. -
-
Method Detail
-
onError
abstract void onError(@NonNull() GiniCaptureError error)
Called when an error occurred.
- Parameters:
error- details about what went wrong
-
onExtractionsAvailable
abstract void onExtractionsAvailable(@NonNull() Map<String, GiniCaptureSpecificExtraction> extractions, @NonNull() Map<String, GiniCaptureCompoundExtraction> compoundExtractions, @NonNull() List<GiniCaptureReturnReason> returnReasons)
Called when the document has been analyzed and extractions are available.
- Parameters:
extractions- a map of the extractions with the extraction labels as keyscompoundExtractions- a map of the compound extractions with the extraction labels as keys
-
onProceedToNoExtractionsScreen
abstract void onProceedToNoExtractionsScreen(@NonNull() Document document)
Called when the document has been analyzed and no extractions were received.
You should show the NoResultsFragmentCompat.
- Parameters:
document- contains the reviewed document
-
onDefaultPDFAppAlertDialogCancelled
abstract void onDefaultPDFAppAlertDialogCancelled()
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.
-
-
-
-