Chat Android SDK
7.0.1
|
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... | |
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.
void com.twilio.chat.CallbackListener< T >.onError | ( | ErrorInfo | errorInfo | ) |
Callback to report error status of an asynchronous call to the back end.
errorInfo | Object containing error information. |
|
abstract |
Callback to report success status of an asynchronous call to the back end.
result | Successful return value. |