CameraFragmentListener

Interface used by CameraFragmentStandard and CameraFragmentCompat to dispatch events to the hosting Activity.

public interface CameraFragmentListener

Types

DocumentCheckResultCallback
Link copied to clipboard

Callback to inform the Gini Vision Library about the outcome of the custom imported document checks.

interface DocumentCheckResultCallback

Functions

onCheckImportedDocument
Link copied to clipboard

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 Vision Library about the result.

Note: The Gini Vision Library will wait until one of the DocumentCheckResultCallback methods are invoked.

onDocumentAvailable
Link copied to clipboard

Called when the user has taken an image with the camera or has imported a document that passed the Gini Vision Library's validation and any custom checks that were implemented.

abstract void onDocumentAvailable(Document document)
onError
Link copied to clipboard

Called when an error occurred.

abstract void onError(GiniVisionError error)
onExtractionsAvailable
Link copied to clipboard

Called after a QRCode was successfully analyzed.

abstract void onExtractionsAvailable(Map<String, GiniVisionSpecificExtractionextractions)
onProceedToMultiPageReviewScreen
Link copied to clipboard
onQRCodeAvailable
Link copied to clipboard

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 Vision Library and continue to your app's transfer form.

See QRCodeDocument for supported formats.

abstract void onQRCodeAvailable(QRCodeDocument qrCodeDocument)

Inheritors

CameraActivity
Link copied to clipboard