-
- All Implemented Interfaces:
public interface ReviewFragmentListenerInterface used by ReviewFragmentCompat 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 voidonProceedToAnalysisScreen(@NonNull() Document document, @Nullable() String errorMessage)Called when the user tapped on the Next button and one of the following conditions apply: - Analysis is in progress
- Analysis completed with an error
- The image was rotated
You should start your Activity extending AnalysisActivity and set the document as the EXTRA_IN_DOCUMENT extra.
-
-
Method Detail
-
onError
abstract void onError(@NonNull() GiniCaptureError error)
Called when an error occurred.
- Parameters:
error- details about what went wrong
-
onProceedToAnalysisScreen
abstract void onProceedToAnalysisScreen(@NonNull() Document document, @Nullable() String errorMessage)
Called when the user tapped on the Next button and one of the following conditions apply:
- Analysis is in progress
- Analysis completed with an error
- The image was rotated
You should start your Activity extending AnalysisActivity and set the document as the EXTRA_IN_DOCUMENT extra.
- Parameters:
document- contains the reviewed image (can be the original one or a modified image)errorMessage- an optional error message to be passed to the Analysis Screen
-
-
-