public abstract class CallbackListener<T>
extends java.lang.Object
onError(com.twilio.chat.ErrorInfo)
. You are only required to define onSuccess(T)
.
Callback listeners are always called on the originating thread or on main UI thread if
the originating thread did not have a Looper.Constructor and Description |
---|
CallbackListener() |
Modifier and Type | Method and Description |
---|---|
void |
onError(ErrorInfo errorInfo)
Callback to report error status of an asynchronous call to the back end.
|
abstract void |
onSuccess(T result)
Callback to report success status of an asynchronous call to the back end.
|
public abstract void onSuccess(T result)
result
- Successful return value.public void onError(ErrorInfo errorInfo)
errorInfo
- Object containing error information.