DocumentScanner
A generic callback handler class.
Last updated
A generic callback handler class.
Last updated
import com.sybrin.documentscanner.networking.DocumentScanner
public
DocumentScanner
<T> addOnCancelListener (
DocumetScanner.OnCancelListener
onCancelListener)
Subscribes to a callback that will fire when the SDK's scanning process is canceled.
public
DocumentScanner
<T> addOnFailureListener(
DocumentScanner.OnFailureListener
onFailureListener)
Subscribes to a callback that will fire when the SDK's scanning process is fails and throws an exception.
public
DocumentScanner
<T> addOnSuccessListener(
DocumentScanner.OnSuccessListener
<T> onSuccessListener)
Subscribes to a callback that will fire when the SDK's scanning process is succeeds.
Nested classes
interface
interface
interface
DocumentScanner.OnSuccessListener<T extends DocumentModel>
Public methods
DocumentScanner<T extends DocumentModel>
addOnCancelListener(DocumentScanner.OnCancelListener onCancelListener)
DocumentScanner<T extends DocumentModel>
addOnFailureListener(DocumentScanner.OnFailureListener onFailureListener)
DocumentScanner<T extends DocumentModel>
addOnSuccessListener(DocumentScanner.OnSuccessListener<T> onSuccessListener)
Parameters
onCancelListener
Returns
DocumentScanner<T extends DocumentModel>
This value cannot be null
.
Parameters
onFailureListener
OnFailureListener
Returns
DocumentScanner<T extends DocumentModel>
This value cannot be null
.
Parameters
onSuccessListener
Returns
DocumentScanner<T extends DocumentModel>
This value cannot be null
.