com.bumptech.glide.request
Interface Request

All Known Implementing Classes:
GenericRequest, ThumbnailRequestCoordinator

public interface Request

A request that loads a resource for an Target.


Method Summary
 void begin()
          Starts an asynchronous load.
 void clear()
          Prevents any bitmaps being loaded from previous requests, releases any resources held by this request, displays the current placeholder if one was provided, and marks the request as having been cancelled.
 boolean isCancelled()
          Returns true if the request has been cancelled.
 boolean isComplete()
          Returns true if the request has completed successfully.
 boolean isFailed()
          Returns true if the request has failed.
 boolean isPaused()
          Returns true if this request is paused and may be restarted.
 boolean isResourceSet()
          Returns true if a non-placeholder resource is set.
 boolean isRunning()
          Returns true if this request is running and has not completed or failed.
 void pause()
          Identical to clear() except that the request may later be restarted.
 void recycle()
          Recycles the request object and releases its resources.
 

Method Detail

begin

void begin()
Starts an asynchronous load.


pause

void pause()
Identical to clear() except that the request may later be restarted.


clear

void clear()
Prevents any bitmaps being loaded from previous requests, releases any resources held by this request, displays the current placeholder if one was provided, and marks the request as having been cancelled.


isPaused

boolean isPaused()
Returns true if this request is paused and may be restarted.


isRunning

boolean isRunning()
Returns true if this request is running and has not completed or failed.


isComplete

boolean isComplete()
Returns true if the request has completed successfully.


isResourceSet

boolean isResourceSet()
Returns true if a non-placeholder resource is set. For Requests that load more than one resource, isResourceSet may return true even if isComplete()} returns false.


isCancelled

boolean isCancelled()
Returns true if the request has been cancelled.


isFailed

boolean isFailed()
Returns true if the request has failed.


recycle

void recycle()
Recycles the request object and releases its resources.