CallbackListener

interface CallbackListener<T>

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.

Functions

Link copied to clipboard
open fun onError(errorInfo: ErrorInfo)
Callback to report error status of an asynchronous call to the back end.
Link copied to clipboard
abstract fun onSuccess(result: T)
Callback to report success status of an asynchronous call to the back end.