|Modifier and Type||Method and Description|
Returns a PreloadTarget.
A mandatory lifecycle callback that is called when a load is cancelled and its resources are freed.
The method that will be called when the resource load has finished.
getRequest, getSize, onDestroy, onLoadFailed, onLoadStarted, onStart, onStop, removeCallback, 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.
public void onResourceReady(@NonNull Z resource, @Nullable Transition<? super Z> transition)
resource- the loaded resource.
public void onLoadCleared(@Nullable android.graphics.drawable.Drawable placeholder)
You must ensure that any current Drawable received in
Transition) is no longer used before redrawing the container (usually a View) or changing its
placeholder- The placeholder drawable to optionally show, or null.