com.nostra13.universalimageloader.core.listener
Class SimpleImageLoadingListener

java.lang.Object
  extended by com.nostra13.universalimageloader.core.listener.SimpleImageLoadingListener
All Implemented Interfaces:
ImageLoadingListener

public class SimpleImageLoadingListener
extends Object
implements ImageLoadingListener

A convenient class to extend when you only want to listen for a subset of all the image loading events. This implements all methods in the ImageLoadingListener but does nothing.

Since:
1.4.0
Author:
Sergey Tarasevich (nostra13[at]gmail[dot]com)

Constructor Summary
SimpleImageLoadingListener()
           
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleImageLoadingListener

public SimpleImageLoadingListener()
Method Detail

onLoadingStarted

public void onLoadingStarted(String imageUri,
                             android.view.View view)
Description copied from interface: ImageLoadingListener
Is called when image loading task was started

Specified by:
onLoadingStarted in interface ImageLoadingListener
Parameters:
imageUri - Loading image URI
view - View for image

onLoadingFailed

public void onLoadingFailed(String imageUri,
                            android.view.View view,
                            FailReason failReason)
Description copied from interface: ImageLoadingListener
Is called when an error was occurred during image loading

Specified by:
onLoadingFailed in interface ImageLoadingListener
Parameters:
imageUri - Loading image URI
view - View for image. Can be null.
failReason - The reason why image loading was failed

onLoadingComplete

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

Specified by:
onLoadingComplete in interface ImageLoadingListener
Parameters:
imageUri - Loaded image URI
view - View for image. Can be null.
loadedImage - Bitmap of loaded and decoded image

onLoadingCancelled

public void onLoadingCancelled(String imageUri,
                               android.view.View view)
Description copied from interface: ImageLoadingListener
Is called when image loading task was cancelled because View for image was reused in newer task

Specified by:
onLoadingCancelled in interface ImageLoadingListener
Parameters:
imageUri - Loading image URI
view - View for image. Can be null.


Copyright © 2011-2014. All Rights Reserved.