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