Z
- The type of resource that will be loaded into memory.public final class PreloadTarget<Z> extends SimpleTarget<Z>
Target
class that loads a resource into memory and then
clears itself.SIZE_ORIGINAL
Modifier and Type | Method and Description |
---|---|
static <Z> PreloadTarget<Z> |
obtain(int width,
int height)
Returns a PreloadTarget.
|
void |
onResourceReady(Z resource,
GlideAnimation<? super Z> glideAnimation)
The method that will be called when the resource load has finished.
|
getSize
getRequest, onDestroy, onLoadCleared, onLoadFailed, onLoadStarted, onStart, onStop, setRequest
public static <Z> PreloadTarget<Z> obtain(int width, int height)
Z
- The type of the desired resource.width
- The width in pixels of the desired resource.height
- The height in pixels of the desired resource.public void onResourceReady(Z resource, GlideAnimation<? super Z> glideAnimation)
Target
resource
- the loaded resource.