-
public interface AnalysisFragmentListenerInternal use only.
-
-
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 NoResultsFragment.
- Parameters:
document- contains the reviewed document
-
onDefaultPDFAppAlertDialogCancelled
abstract void onDefaultPDFAppAlertDialogCancelled()
Called when the default PDF app alert dialog was cancelled. You should close theAnalysisFragment 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 asdefault for opening PDFs.
-
-
-
-