Search code examples
androidbitmapuniversal-image-loader

What is the view returned in the onLoadingComplete callback from ImageLoadingListener?


I'm using the loadImage method from nostra13's excellent Android-Universal-Image-Loader image library and I'm wondering what view is returned in the onLoadingComplete callback of ImageLoadingListener. Here's the method:

// Load image, decode it to Bitmap and return Bitmap to callback
imageLoader.loadImage(imageUri, new SimpleImageLoadingListener() {
    @Override
    public void onLoadingComplete(String imageUri, View view, Bitmap loadedImage) {
        // Do whatever you want with Bitmap
    }
});

I'm not specifying any view, so how can it return a view?

Thanks!


Solution

  • If you call loadImage(...) method then you'll get view == null in your callback.