Suggestions

close search

StatusListener

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().



Summary


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.


Public constructors


StatusListener

StatusListener()

Creates a new StatusListener instance.



Public methods


onSuccess

abstract void onSuccess()

Callback to report success status of an asynchronous call to the back end.



onError

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.



onProgress

void onProgress(int percent)

Callback to report progress of an asynchronous call to the back end.

Parameters
percent

The percentage of progress.