public interface ReviewFragmentInterface
| Modifier and Type | Method and Description |
|---|---|
void |
onDocumentAnalyzed()
Deprecated.
When a
GiniVision instance is available the document is analyzed
internally by using the configured GiniVisionNetworkService implementation. The
extractions will be returned in the Analysis Screen in
AnalysisFragmentListener#onExtractionsAvailable(Map, Map). |
void |
onNoExtractionsFound()
Deprecated.
When a
GiniVision instance is available the document is analyzed
internally by using the configured GiniVisionNetworkService implementation. |
void |
setListener(ReviewFragmentListener listener)
Set a listener for review events.
|
@Deprecated void onDocumentAnalyzed()
GiniVision instance is available the document is analyzed
internally by using the configured GiniVisionNetworkService implementation. The
extractions will be returned in the Analysis Screen in
AnalysisFragmentListener#onExtractionsAvailable(Map, Map).This is important for managing the behavior of the Review Document Fragment when the Next button was clicked.
If the document has already been analyzed and the image wasn't changed when the user
tapped the Next button, ReviewFragmentListener.onDocumentReviewedAndAnalyzed(Document)
is called and there is no need to show an AnalysisActivity or AnalysisFragmentStandard or AnalysisFragmentCompat.
If the document wasn't analyzed or the image was changed when the user tapped the Next
button, ReviewFragmentListener.onProceedToAnalysisScreen(Document) is called.
@Deprecated void onNoExtractionsFound()
GiniVision instance is available the document is analyzed
internally by using the configured GiniVisionNetworkService implementation.void setListener(ReviewFragmentListener listener)
By default the hosting Activity is expected to implement the ReviewFragmentListener. 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.
listener - ReviewFragmentListener instance