com.android.volley.toolbox
Class ImageLoader.ImageContainer

java.lang.Object
  extended by com.android.volley.toolbox.ImageLoader.ImageContainer
Enclosing class:
ImageLoader

public class ImageLoader.ImageContainer
extends Object

Container object for all of the data surrounding an image request.


Constructor Summary
ImageLoader.ImageContainer(Bitmap bitmap, String requestUrl, String cacheKey, ImageLoader.ImageListener listener)
          Constructs a BitmapContainer object.
 
Method Summary
 void cancelRequest()
          Releases interest in the in-flight request (and cancels it if no one else is listening).
 Bitmap getBitmap()
          Returns the bitmap associated with the request URL if it has been loaded, null otherwise.
 String getRequestUrl()
          Returns the requested URL for this container.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImageLoader.ImageContainer

public ImageLoader.ImageContainer(Bitmap bitmap,
                                  String requestUrl,
                                  String cacheKey,
                                  ImageLoader.ImageListener listener)
Constructs a BitmapContainer object.

Parameters:
bitmap - The final bitmap (if it exists).
requestUrl - The requested URL for this container.
cacheKey - The cache key that identifies the requested URL for this container.
Method Detail

cancelRequest

public void cancelRequest()
Releases interest in the in-flight request (and cancels it if no one else is listening).


getBitmap

public Bitmap getBitmap()
Returns the bitmap associated with the request URL if it has been loaded, null otherwise.


getRequestUrl

public String getRequestUrl()
Returns the requested URL for this container.