ThumbnailRequestCoordinator

open class ThumbnailRequestCoordinator : RequestCoordinator, Request

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.

Constructors

Link copied to clipboard
open fun ThumbnailRequestCoordinator(requestLock: Any, parent: RequestCoordinator)

Functions

Link copied to clipboard
open fun begin()
Starts first the thumb request and then the full request.
Link copied to clipboard
open fun canNotifyCleared(request: Request): Boolean
Returns true if the Request can clear the .
Link copied to clipboard
open fun canNotifyStatusChanged(request: Request): Boolean
Returns true if the request is the request loading the full size image and if neither the full nor the thumbnail image have completed successfully.
Link copied to clipboard
open fun canSetImage(request: Request): Boolean
Returns true if the request is either the request loading the full size image or if the request loading the full size image has not yet completed.
Link copied to clipboard
open fun 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.
Link copied to clipboard
open fun getRoot(): RequestCoordinator
Returns the top most parent RequestCoordinator.
Link copied to clipboard
open fun isAnyResourceSet(): Boolean
Returns true if any coordinated Request has successfully completed.
Link copied to clipboard
open fun isCleared(): Boolean
Returns true if the request has been cleared.
Link copied to clipboard
open fun isComplete(): Boolean
Returns true if the request has completed successfully.
Link copied to clipboard
open fun isEquivalentTo(o: Request): Boolean
Returns true if this Request is equivalent to the given Request (has all of the same options and sizes).
Link copied to clipboard
open fun isRunning(): Boolean
Returns true if this request is running and has not completed or failed.
Link copied to clipboard
open fun onRequestFailed(request: Request)
Must be called when a Request coordinated by this object fails.
Link copied to clipboard
open fun onRequestSuccess(request: Request)
Must be called when a Request coordinated by this object completes successfully.
Link copied to clipboard
open fun pause()
Similar to clear for in progress requests (or portions of a request), but does nothing if the request is already complete.
Link copied to clipboard
open fun setRequests(full: Request, thumb: Request)