DocumentScanner

A generic callback handler class.

import com.sybrin.documentscanner.networking.DocumentScanner

Summary

Nested classes

interface

interface

interface

Public methods

Public methods

addOnCancelListener

public DocumentScanner<T> addOnCancelListener (DocumetScanner.OnCancelListener onCancelListener)

Subscribes to a callback that will fire when the SDK's scanning process is canceled.

Parameters

onCancelListener

Returns

This value cannot be null.

addOnFailureListener

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.

Parameters

onFailureListener

OnFailureListener

Returns

This value cannot be null.

addOnSuccessListener

public DocumentScanner<T> addOnSuccessListener(DocumentScanner.OnSuccessListener<T> onSuccessListener)

Subscribes to a callback that will fire when the SDK's scanning process is succeeds.

Parameters

onSuccessListener

Returns

This value cannot be null.

Last updated