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(RequestManager requestManager,
int width,
int height)
Returns a PreloadTarget.
|
void |
onResourceReady(Z resource,
Transition<? super Z> transition)
The method that will be called when the resource load has finished.
|
getSize, removeCallback
getRequest, onDestroy, onLoadCleared, onLoadFailed, onLoadStarted, onStart, onStop, setRequest
public static <Z> PreloadTarget<Z> obtain(RequestManager requestManager, 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.