public static interface RestClient.AsyncRequestCallback
Modifier and Type | Method and Description |
---|---|
void |
onError(java.lang.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() {
|
void |
onSuccess(RestRequest request,
RestResponse response)
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.consumeQuietly(); // consume before going back to main thread
runOnUiThread(new Runnable() {
|
void onSuccess(RestRequest request, RestResponse response)
request
- response
- void onError(java.lang.Exception exception)
exception
-