SingleRequest

class SingleRequest<R> : Request, SizeReadyCallback, ResourceCallback

A Request that loads a com.bumptech.glide.load.engine.Resource into a given Target.

Parameters

<R>

The type of the resource that will be transcoded from the loaded resource.

Functions

Link copied to clipboard
open fun begin()
Starts an asynchronous load.
Link copied to clipboard
open fun clear()
Cancels the current load if it is in progress, clears any resources held onto by the request and replaces the loaded resource if the load completed with the placeholder.
Link copied to clipboard
open fun getLock(): Any
Returns the lock to use when notifying individual requests.
Link copied to clipboard
open fun isAnyResourceSet(): Boolean
Returns true if a resource is set, even if the request is not yet complete or the primary request has failed.
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 <R> obtain(    context: Context,     glideContext: GlideContext,     requestLock: Any,     model: Any,     transcodeClass: Class<R>,     requestOptions: BaseRequestOptions<out Any>,     overrideWidth: Int,     overrideHeight: Int,     priority: Any,     target: Target<R>,     targetListener: RequestListener<R>,     requestListeners: List<RequestListener<R>>,     requestCoordinator: RequestCoordinator,     engine: Engine,     animationFactory: TransitionFactory<out Any>,     callbackExecutor: Executor): SingleRequest<R>
Link copied to clipboard
open fun onLoadFailed(e: GlideException)
A callback method that should never be invoked directly.
Link copied to clipboard
open fun onResourceReady(    resource: Resource<out Any>,     dataSource: DataSource,     isLoadedFromAlternateCacheKey: Boolean)
A callback method that should never be invoked directly.
Link copied to clipboard
open fun onSizeReady(width: Int, height: Int)
A callback method that should never be invoked directly.
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 toString(): String