on Check Imported Document
public 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 picked
callback
use this callback to inform the Gini Capture SDK about the result of the custom checks