Chat Android SDK  7.0.1
com.twilio.chat.CallbackListener< T > Class Template Referenceabstract

Listener interface for a generic listener object. More...

Public Member Functions

abstract void onSuccess (T result)
 Callback to report success status of an asynchronous call to the back end. More...
 
void onError (ErrorInfo errorInfo)
 Callback to report error status of an asynchronous call to the back end. More...
 

Detailed Description

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

Callback listeners are always called on the originating thread or on main UI thread if the originating thread did not have a Looper.

Member Function Documentation

void com.twilio.chat.CallbackListener< T >.onError ( ErrorInfo  errorInfo)

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

Parameters
errorInfoObject containing error information.
abstract void com.twilio.chat.CallbackListener< T >.onSuccess ( result)
abstract

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

Parameters
resultSuccessful return value.