-
- All Implemented Interfaces:
public interface CameraFragmentListenerInterface used by CameraFragmentCompat 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 voidonDocumentAvailable(@NonNull() Document document)Called when the user has taken an image with the camera or has imported a document that passed the Gini Capture SDK's validation and any custom checks that were implemented. abstract voidonProceedToMultiPageReviewScreen(@NonNull() GiniCaptureMultiPageDocument multiPageDocument)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. voidonQRCodeAvailable(@NonNull() QRCodeDocument qrCodeDocument)Called when the user clicked the QR Code detected popup. -
-
Method Detail
-
onDocumentAvailable
abstract void onDocumentAvailable(@NonNull() Document document)
Called when the user has taken an image with the camera or has imported a document that passed the Gini Capture SDK's validation and any custom checks that were implemented.
- Parameters:
document- the image taken by the camera or the validated imported document
-
onProceedToMultiPageReviewScreen
abstract void onProceedToMultiPageReviewScreen(@NonNull() GiniCaptureMultiPageDocument multiPageDocument)
-
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
-
onQRCodeAvailable
@Deprecated() void onQRCodeAvailable(@NonNull() QRCodeDocument qrCodeDocument)
Called when the user clicked the QR Code detected popup. You should upload the QRCodeDocument's data to the Gini API to get the extractions, close the Gini Capture SDK and continue to your app's transfer form.
See QRCodeDocument for supported formats.
- Parameters:
qrCodeDocument- contains payment data from a QR Code
-
-
-
-