public class ImageLoader.ImageContainer
extends java.lang.Object
Constructor and Description |
---|
ImageContainer(android.graphics.Bitmap bitmap,
java.lang.String requestUrl,
java.lang.String cacheKey,
ImageLoader.ImageListener listener)
Constructs a BitmapContainer object.
|
Modifier and Type | Method and Description |
---|---|
void |
cancelRequest()
Releases interest in the in-flight request (and cancels it if no one else is listening).
|
android.graphics.Bitmap |
getBitmap()
Returns the bitmap associated with the request URL if it has been loaded, null otherwise.
|
java.lang.String |
getRequestUrl()
Returns the requested URL for this container.
|
public ImageContainer(android.graphics.Bitmap bitmap, java.lang.String requestUrl, java.lang.String cacheKey, ImageLoader.ImageListener listener)
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.public void cancelRequest()
public android.graphics.Bitmap getBitmap()
public java.lang.String getRequestUrl()