Suggestions

close search

CallbackListener

public abstract class CallbackListener



Interface for a generic listener object with result.



Summary


Public Constructors
CallbackListener()

Creates a new CallbackListener instance.

Public methods
void onSuccess(T value)

Callback to report success status with result value 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.


Public constructors


CallbackListener

CallbackListener()

Creates a new CallbackListener instance.



Public methods


onSuccess

abstract void onSuccess(T value)

Callback to report success status with result value 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.