AsyncRequestCallback

AsyncRequestCallback interface. Interface through which the result of an asynchronous request is handled.

Functions

Link copied to clipboard
abstract fun onError(exception: Exception)
NB: onError runs on a network thread If you are making your call from an activity and need to make UI changes make sure to call runOnUiThread runOnUiThread(new Runnable() {
Link copied to clipboard
abstract fun onSuccess(request: RestRequest, response: RestResponse)
NB: onSuccess runs on a network thread If you are making your call from an activity and need to make UI changes make sure to first consume the response and then call runOnUiThread result.