Communicates responses from a server or offline requests. One and only one method will be invoked in response to a given request. Callback methods are executed using the Retrofit callback executor. When none is specified, the following defaults are used: Android: Callbacks ar
| 30 | * @param <T> Successful response body type. |
| 31 | */ |
| 32 | public interface Callback<T> { |
| 33 | /** |
| 34 | * Invoked for a received HTTP response. |
| 35 | * |
| 36 | * <p>Note: An HTTP response may still indicate an application-level failure such as a 404 or 500. |
| 37 | * Call {@link Response#isSuccessful()} to determine if the response indicates success. |
| 38 | */ |
| 39 | void onResponse(Call<T> call, Response<T> response); |
| 40 | |
| 41 | /** |
| 42 | * Invoked when a network exception occurred talking to the server or when an unexpected exception |
| 43 | * occurred creating the request or processing the response. |
| 44 | */ |
| 45 | void onFailure(Call<T> call, Throwable t); |
| 46 | } |
no outgoing calls
no test coverage detected
searching dependent graphs…