ErrorRequestCoordinator

class ErrorRequestCoordinator : RequestCoordinator, Request

Runs a single primary Request until it completes and then a fallback error request only if the single primary request fails.

Constructors

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

Functions

Link copied to clipboard
open fun begin()
Starts an asynchronous load.
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 can display a placeholder.
Link copied to clipboard
open fun canSetImage(request: Request): Boolean
Returns true if the Request can display a loaded bitmap.
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(primary: Request, error: Request)