T - the type of the image.@ThreadSafe public final class PendingImage<T> extends Object
setImage(Object).| Modifier and Type | Class and Description |
|---|---|
static interface |
PendingImage.LoadCancelable
A class that can cancel a load, given a key.
|
static interface |
PendingImage.OnImageLoaded<T2>
Callback to call when an image has been loaded.
|
| Constructor and Description |
|---|
PendingImage(PendingImage.LoadCancelable loadCancelable,
String loadKey) |
| Modifier and Type | Method and Description |
|---|---|
void |
cancelLoad()
Cancels the load of this image.
|
T |
getImage() |
String |
getLoadKey() |
boolean |
isLoaded() |
void |
setImage(T image) |
public PendingImage(PendingImage.LoadCancelable loadCancelable, String loadKey)
loadCancelable - the class capable of canceling the load of this image. This will be
called by cancelLoad().loadKey - the key associated with this load. This must be unique for each image.public void cancelLoad()
public T getImage()
public String getLoadKey()
public boolean isLoaded()
public void setImage(T image)
image - sets the image.