-
public interface CameraFragmentListenerInternal use only.
Interface used by CameraFragment to dispatch events to the hosting Activity.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceCameraFragmentListener.DocumentCheckResultCallbackCallback to inform the Gini Capture SDK about the outcome of the custom imported document checks.
-
Method Summary
Modifier and Type Method Description abstract voidonCheckImportedDocument(@NonNull() Document document, @NonNull() CameraFragmentListener.DocumentCheckResultCallback callback)This method is invoked for imported documents to allow custom validations. abstract voidonError(@NonNull() GiniCaptureError error)Called when an error occurred. abstract voidonExtractionsAvailable(@NonNull() Map<String, GiniCaptureSpecificExtraction> extractions)Called after a QRCode was successfully analyzed. -
-
Method Detail
-
onCheckImportedDocument
abstract void onCheckImportedDocument(@NonNull() Document document, @NonNull() CameraFragmentListener.DocumentCheckResultCallback callback)
This method is invoked for imported documents to allow custom validations.
Invoke one of the DocumentCheckResultCallback methods on the main thread to inform the Gini Capture SDK about the result.
Note: The Gini Capture SDK will wait until one of the DocumentCheckResultCallback methods are invoked.
- Parameters:
document- a Document created from the file the user pickedcallback- use this callback to inform the Gini Capture SDK about the result of the custom checks
-
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)
Called after a QRCode was successfully analyzed.
- Parameters:
extractions- a map of the extractions with the extraction labels as keys
-
-
-
-