Package com.bumptech.glide.manager
Class RequestTracker
java.lang.Object
com.bumptech.glide.manager.RequestTracker
A class for tracking, canceling, and restarting in progress, completed, and failed requests.
This class is not thread safe and must be accessed on the main thread.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanclearAndRemove(Request request) Stops tracking the given request, clears, and recycles it, and returnstrueif the request was removed or invalid orfalseif the request was not found.voidCancels all requests and clears their resources.booleanisPaused()Returnstrueif requests are currently paused, andfalseotherwise.voidStops any in progress requests and releases bitmaps associated with completed requests.voidStops any in progress requests.voidRestarts failed requests and cancels and restarts in progress requests.voidStarts any not yet completed or failed requests.voidrunRequest(Request request) Starts tracking the given request.toString()
-
Constructor Details
-
RequestTracker
public RequestTracker()
-
-
Method Details
-
runRequest
Starts tracking the given request. -
clearAndRemove
Stops tracking the given request, clears, and recycles it, and returnstrueif the request was removed or invalid orfalseif the request was not found. -
isPaused
public boolean isPaused()Returnstrueif requests are currently paused, andfalseotherwise. -
pauseRequests
public void pauseRequests()Stops any in progress requests. -
pauseAllRequests
public void pauseAllRequests()Stops any in progress requests and releases bitmaps associated with completed requests. -
resumeRequests
public void resumeRequests()Starts any not yet completed or failed requests. -
clearRequests
public void clearRequests()Cancels all requests and clears their resources.After this call requests cannot be restarted.
-
restartRequests
public void restartRequests()Restarts failed requests and cancels and restarts in progress requests. -
toString
-