public abstract class StatusListener
Interface for a generic listener object.
This interface is implemented as an abstract class with already
defined (empty) body for onError(). You are only required to define onSuccess().
Public Constructors | |
---|---|
StatusListener()
Creates a new StatusListener instance. |
Public methods | |
---|---|
void |
onSuccess()
Callback to report success status of an asynchronous call to the back end. |
void |
onError(StringeeError errorInfo)
Callback to report error status of an asynchronous call to the back end. |
void |
onProgress(int percent)
Callback to report progress of an asynchronous call to the back end. |
StatusListener()
Creates a new StatusListener instance.
abstract void onSuccess()
Callback to report success status of an asynchronous call to the back end.
void onError(StringeeError errorInfo)
Callback to report error status of an asynchronous call to the back end.
Parameters | |
---|---|
errorInfo |
The StringeeError Object containing error information. |
void onProgress(int percent)
Callback to report progress of an asynchronous call to the back end.
Parameters | |
---|---|
percent |
The percentage of progress. |