asGif

open fun asGif(): RequestBuilder<GifDrawable>

Attempts to always load the resource as a .

If the underlying data is not a GIF, this will fail. As a result, this should only be used if the model represents an animated GIF and the caller wants to interact with the GifDrawable directly. Normally using just asDrawable is sufficient because it will determine whether or not the given data represents an animated GIF and return the appropriate , animated or not, automatically.

Return

A new request builder for loading a .