public class ImageLoader.ImageContainer
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private Bitmap |
mBitmap
The most relevant bitmap for the container.
|
private java.lang.String |
mCacheKey
The cache key that was associated with the request
|
private ImageLoader.ImageListener |
mListener |
private java.lang.String |
mRequestUrl
The request URL that was specified
|
Constructor and Description |
---|
ImageContainer(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).
|
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.
|
private Bitmap mBitmap
private final ImageLoader.ImageListener mListener
private final java.lang.String mCacheKey
private final java.lang.String mRequestUrl
public ImageContainer(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 Bitmap getBitmap()
public java.lang.String getRequestUrl()