public interface Callback
The callback is to be fired upon completion of a Call or upon an exception. Generally used for network calls.
Call
void
onFailure(Call call, java.io.IOException e)
onResponse(Call call, Response response)
void onFailure(Call call, java.io.IOException e)
call
e
void onResponse(Call call, Response response) throws java.io.IOException
response
java.io.IOException