public class ImageLoader.ImageContainer extends Object
Constructor and Description |
---|
ImageContainer(Bitmap bitmap,
String requestUrl,
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.
|
String |
getRequestUrl()
Returns the requested URL for this container.
|
public ImageContainer(Bitmap bitmap, String requestUrl, 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 String getRequestUrl()