submit

open fun <T> submit(requestBuilder: RequestBuilder<T>): ListenableFuture<T>

Convert a pending load request into a ListenableFuture.

Sample code:


ListenableFuture<File> image =
    GlideFutures.submit(requestManager.asFile().load(url));

Parameters

requestBuilder

A request builder for the resource to load. It must be tied to an application Glide instance, and must not have a listener set.

<T>

The type of resource that will be loaded (Bitmap, Drawable, etc).