T
- expected response typepublic interface Callback<T>
Callback methods are executed using the Retrofit
callback executor. When none is
specified, the following defaults are used:
Modifier and Type | Method and Description |
---|---|
void |
onFailure(Throwable t)
Invoked when a network or unexpected exception occurred during the HTTP request.
|
void |
onResponse(Response<T> response,
Retrofit retrofit)
Successful HTTP response.
|
Copyright © 2015 Square, Inc.. All Rights Reserved.