com.nostra13.universalimageloader.core.listener
Interface ImageLoadingListener

All Known Implementing Classes:
SimpleImageLoadingListener

public interface ImageLoadingListener

Listener for image loading process.
You can use SimpleImageLoadingListener for implementing only needed methods.

Since:
1.0.0
Author:
Sergey Tarasevich (nostra13[at]gmail[dot]com)
See Also:
SimpleImageLoadingListener, FailReason

Method Summary
 void onLoadingCancelled(String imageUri, android.view.View view)
          Is called when image loading task was cancelled because View for image was reused in newer task
 void onLoadingComplete(String imageUri, android.view.View view, android.graphics.Bitmap loadedImage)
          Is called when image is loaded successfully (and displayed in View if one was specified)
 void onLoadingFailed(String imageUri, android.view.View view, FailReason failReason)
          Is called when an error was occurred during image loading
 void onLoadingStarted(String imageUri, android.view.View view)
          Is called when image loading task was started
 

Method Detail

onLoadingStarted

void onLoadingStarted(String imageUri,
                      android.view.View view)
Is called when image loading task was started

Parameters:
imageUri - Loading image URI
view - View for image

onLoadingFailed

void onLoadingFailed(String imageUri,
                     android.view.View view,
                     FailReason failReason)
Is called when an error was occurred during image loading

Parameters:
imageUri - Loading image URI
view - View for image. Can be null.
failReason - The reason why image loading was failed

onLoadingComplete

void onLoadingComplete(String imageUri,
                       android.view.View view,
                       android.graphics.Bitmap loadedImage)
Is called when image is loaded successfully (and displayed in View if one was specified)

Parameters:
imageUri - Loaded image URI
view - View for image. Can be null.
loadedImage - Bitmap of loaded and decoded image

onLoadingCancelled

void onLoadingCancelled(String imageUri,
                        android.view.View view)
Is called when image loading task was cancelled because View for image was reused in newer task

Parameters:
imageUri - Loading image URI
view - View for image. Can be null.


Copyright © 2011-2014. All Rights Reserved.