Package com.naver.ads.network
Interface Caller.Callback
-
- All Implemented Interfaces:
public interface Caller.Callback<TResponse extends Object>the callback type to notify the result of this caller.
-
-
Method Summary
Modifier and Type Method Description UnitonPreRequest(HttpRequest rawRequest)Called before the requesting started. abstract UnitonResponse(Caller<TResponse> caller, Response<TResponse> response)Called when the Response is successfully returned. abstract UnitonFailure(Caller<TResponse> caller, Exception exception)Called when a network exception occurred talking to the server or when an unexpected exception occurred creating the request or processing the response. -
-
Method Detail
-
onPreRequest
Unit onPreRequest(HttpRequest rawRequest)
Called before the requesting started.
-
onResponse
abstract Unit onResponse(Caller<TResponse> caller, Response<TResponse> response)
Called when the Response is successfully returned.
-
-
-
-