onCompletion
void onCompletion(T result,
java.lang.Exception exception)
The callback method that the user can implement to do asynchronous handling of the response. T defines the type of
the result. When T=Void then there is no specific response expected but any errors are reported on the
exception object. For all other values of T, one of the two arguments would be null.
- Parameters:
result
- The result of the request. This would be non null when the request executed successfully
exception
- The exception that was reported on execution of the request