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

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

Parameters

document

a Document created from the file the user picked

callback

use this callback to inform the Gini Vision Library about the result of the custom checks