ModelType - The type of model to load the GifDrawable or other
transcoded class from.public class GifTypeRequest<ModelType> extends GifRequestBuilder<ModelType>
GifDrawable
directly or that adds an ResourceTranscoder to transcode
GifDrawable into another resource type.context, glide, lifecycle, modelClass, requestTracker, transcodeClass| Modifier and Type | Method and Description |
|---|---|
GenericRequestBuilder<ModelType,InputStream,GifDrawable,byte[]> |
toBytes()
Setup the request to return the bytes of the loaded gif.
|
<R> GenericRequestBuilder<ModelType,InputStream,GifDrawable,R> |
transcode(ResourceTranscoder<GifDrawable,R> transcoder,
Class<R> transcodeClass)
Sets a transcoder to transcode the decoded
GifDrawable into another
resource type. |
animate, animate, animate, cacheDecoder, centerCrop, clone, crossFade, crossFade, crossFade, crossFade, decoder, diskCacheStrategy, dontAnimate, dontTransform, encoder, error, error, fallback, fallback, fitCenter, listener, load, override, placeholder, placeholder, priority, signature, sizeMultiplier, skipMemoryCache, sourceEncoder, thumbnail, thumbnail, thumbnail, transcoder, transform, transformFrame, transformFramepublic <R> GenericRequestBuilder<ModelType,InputStream,GifDrawable,R> transcode(ResourceTranscoder<GifDrawable,R> transcoder, Class<R> transcodeClass)
GifDrawable into another
resource type.R - The type of the resource the GifDrawable will be
trasncoded to.transcoder - The transcoder to use.transcodeClass - The Class of the resource the
GifDrawable will be transcoded to.public GenericRequestBuilder<ModelType,InputStream,GifDrawable,byte[]> toBytes()
Note - Any transformations added during this load do not change the underlying bytes and therefore this will always load and provide the bytes of the original image before any transformations to the given target.