GlideFutures

class GlideFutures

Utilities for getting ListenableFutures out of Glide.

Types

Link copied to clipboard
interface ResourceConsumer<T>
Acts on a resource loaded by Glide.

Functions

Link copied to clipboard
open fun <T> submit(requestBuilder: RequestBuilder<T>): ListenableFuture<T>
Convert a pending load request into a ListenableFuture.
Link copied to clipboard
open fun <T> submitAndExecute(    requestManager: RequestManager,     requestBuilder: RequestBuilder<T>,     action: GlideFutures.ResourceConsumer<T>,     executor: Executor): ListenableFuture<Void>
Submits the provided request, performs the provided action and returns a that can be used to cancel the request or monitor its status.