|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.bumptech.glide.request.ThumbnailRequestCoordinator
public class ThumbnailRequestCoordinator
A coordinator that coordinates two individual Requests that load a small thumbnail version of an image and
the full size version of the image at the same time.
| Constructor Summary | |
|---|---|
ThumbnailRequestCoordinator()
|
|
| Method Summary | |
|---|---|
void |
begin()
Starts first the thumb request and then the full request. |
boolean |
canNotifyStatusChanged(Request request)
Returns true if the request is the request loading the fullsize image and if neither the full nor the thumbnail image have completed sucessfully. |
boolean |
canSetImage(Request request)
Returns true if the request is either the request loading the fullsize image or if the request loading the fullsize image has not yet completed. |
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 |
isAnyRequestComplete()
Returns true if either the full request has completed successfully or the thumb request has completed successfully. |
boolean |
isCancelled()
Returns true if the request has been cancelled. |
boolean |
isComplete()
Returns true if the full request is complete. |
boolean |
isFailed()
Returns true if the full request has failed. |
boolean |
isPaused()
Returns true if this request is paused and may be restarted. |
boolean |
isRunning()
Returns true if the full request is still running. |
void |
pause()
Identical to Request.clear() except that the request may later be restarted. |
void |
recycle()
Recycles the request object and releases its resources. |
void |
setRequests(Request full,
Request thumb)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ThumbnailRequestCoordinator()
| Method Detail |
|---|
public void setRequests(Request full,
Request thumb)
public boolean canSetImage(Request request)
canSetImage in interface RequestCoordinatorrequest - The Request requesting permission to display a bitmap.public boolean canNotifyStatusChanged(Request request)
canNotifyStatusChanged in interface RequestCoordinatorrequest - The Request requesting permission to display a placeholder..public boolean isAnyRequestComplete()
isAnyRequestComplete in interface RequestCoordinatorRequest.isComplete()public void begin()
begin in interface Requestpublic void pause()
RequestRequest.clear() except that the request may later be restarted.
pause in interface Requestpublic void clear()
clear in interface Requestpublic boolean isPaused()
Request
isPaused in interface Requestpublic boolean isRunning()
isRunning in interface Requestpublic boolean isComplete()
isComplete in interface Requestpublic boolean isCancelled()
Request
isCancelled in interface Requestpublic boolean isFailed()
isFailed in interface Requestpublic void recycle()
recycle in interface Request
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||