private class ImageLoader.BatchedImageRequest
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.util.LinkedList<ImageLoader.ImageContainer> |
mContainers
List of all of the active ImageContainers that are interested in the request
|
private VolleyError |
mError
Error if one occurred for this response
|
private Request<?> |
mRequest
The request being tracked
|
private Bitmap |
mResponseBitmap
The result of the request being tracked by this item
|
Constructor and Description |
---|
BatchedImageRequest(Request<?> request,
ImageLoader.ImageContainer container)
Constructs a new BatchedImageRequest object
|
Modifier and Type | Method and Description |
---|---|
void |
addContainer(ImageLoader.ImageContainer container)
Adds another ImageContainer to the list of those interested in the results of
the request.
|
VolleyError |
getError()
Get the error for this response
|
boolean |
removeContainerAndCancelIfNecessary(ImageLoader.ImageContainer container)
Detatches the bitmap container from the request and cancels the request if no one is
left listening.
|
void |
setError(VolleyError error)
Set the error for this response
|
private final Request<?> mRequest
private Bitmap mResponseBitmap
private VolleyError mError
private final java.util.LinkedList<ImageLoader.ImageContainer> mContainers
public BatchedImageRequest(Request<?> request, ImageLoader.ImageContainer container)
request
- The request being trackedcontainer
- The ImageContainer of the person who initiated the request.public void setError(VolleyError error)
public VolleyError getError()
public void addContainer(ImageLoader.ImageContainer container)
public boolean removeContainerAndCancelIfNecessary(ImageLoader.ImageContainer container)
container
- The container to remove from the list