Package com.naver.ads.image
Interface ImageCallback
-
- All Implemented Interfaces:
public interface ImageCallbackThe callback type to notify the result of an image request.
-
-
Method Summary
Modifier and Type Method Description abstract UnitonResponse(ImageRequest request, Bitmap response)Called when the Bitmap is successfully returned by the HTTP server. abstract UnitonFailure(ImageRequest request, Exception e)Called when the ImageRequest call could not be executed due an error. -
-
Method Detail
-
onResponse
abstract Unit onResponse(ImageRequest request, Bitmap response)
Called when the Bitmap is successfully returned by the HTTP server.
- Parameters:
request- the image requestresponse- the response for the image request
-
onFailure
abstract Unit onFailure(ImageRequest request, Exception e)
Called when the ImageRequest call could not be executed due an error.
- Parameters:
request- the image requeste- the reason for request failure
-
-
-
-