public interface AnalysisFragmentListener
Interface used by AnalysisFragmentStandard
and AnalysisFragmentCompat
to dispatch events to the hosting Activity.
Modifier and Type | Method and Description |
---|---|
void |
onAnalyzeDocument(Document document)
Deprecated.
When a
GiniVision instance is available the document
is analyzed internally by using the configured GiniVisionNetworkService
implementation. The extractions will be returned in AnalysisFragmentListener.onExtractionsAvailable(Map) . |
void |
onDefaultPDFAppAlertDialogCancelled()
Called when the default PDF app alert dialog was cancelled.
|
void |
onError(GiniVisionError error)
Called when an error occurred.
|
void |
onExtractionsAvailable(java.util.Map extractions)
Called when the document has been analyzed and extractions are available.
|
void |
onProceedToNoExtractionsScreen(Document document)
Called when the document has been analyzed and no extractions were received.
|
@Deprecated void onAnalyzeDocument(Document document)
GiniVision
instance is available the document
is analyzed internally by using the configured GiniVisionNetworkService
implementation. The extractions will be returned in AnalysisFragmentListener.onExtractionsAvailable(Map)
.Called when the Analyze Document Fragment is started and the document can be analyzed.
document
- contains the image taken by the camera (original or modified)void onError(GiniVisionError error)
Called when an error occurred.
error
- details about what went wrongvoid onExtractionsAvailable(java.util.Map extractions)
extractions
- a map of the extractions with the extraction labels as keysvoid onProceedToNoExtractionsScreen(Document document)
You should show the NoResultsFragmentStandard
or NoResultsFragmentCompat
.
document
- contains the reviewed documentvoid onDefaultPDFAppAlertDialogCancelled()
This alert dialog is shown for PDFs imported from another app when your app was set as default for opening PDFs.