public static interface HttpImageLoader.HttpImageLoaderListener
HttpImageView is done
automatically along the loading workflow. this listener gives you the
possibility to do some extra work.| Modifier and Type | Method and Description |
|---|---|
void |
onFailure(HttpImageView imageView,
HttpRequest request,
Exception e,
boolean isForImageView)
This method gets called, when an error has occurred while loading an
image.
|
void |
onSuccess(HttpImageView imageView,
HttpResponse<android.graphics.Bitmap> response,
boolean isForImageView)
Called, when the image resource (bitmap) has been loaded successfully
|
void onFailure(HttpImageView imageView, HttpRequest request, Exception e, boolean isForImageView)
imageView - The HttpImageView wheret the drawable shoule be
loaded intorequest - The HttpRequest that was executed to retrieve the
imagee - The Exception that was thrownisForImageView - true, if the failed to loading resource is still for this
HttpImageView (ListView recycling etc.)void onSuccess(HttpImageView imageView, HttpResponse<android.graphics.Bitmap> response, boolean isForImageView)
imageView - The HttpImageView where the loaded image should be
loaded intoresponse - The original HttpResponseisForImageView - true, if the loaded image is still for the
HttpImageView (ListView recycling) etc.Copyright © 2015 Hannes Dorfmann. All rights reserved.