ModelType
- The type of the model used to retrieve data.DataType
- The type of data retrieved.ResourceType
- The type of resource to be decoded from the the data.public class GenericTranscodeRequest<ModelType,DataType,ResourceType> extends GenericRequestBuilder<ModelType,DataType,ResourceType,ResourceType>
Warning - It is not safe to use this builder after calling into()
, it may be pooled and
reused.
context, glide, lifecycle, modelClass, requestTracker, transcodeClass
Modifier and Type | Method and Description |
---|---|
FutureTarget<File> |
downloadOnly(int width,
int height)
Loads the original unmodified data into the cache and returns a
Future that can be
used to retrieve the cache File containing the data. |
<Y extends Target<File>> |
downloadOnly(Y target)
Loads the original unmodified data into the cache and calls the given Target with the cache File.
|
<TranscodeType> |
transcode(ResourceTranscoder<ResourceType,TranscodeType> transcoder,
Class<TranscodeType> transcodeClass)
Adds a transcoder to this request to transcode from the resource type to the given transcode type.
|
animate, animate, animate, animate, cacheDecoder, clone, decoder, diskCacheStrategy, dontAnimate, dontTransform, encoder, error, error, fallback, fallback, into, into, into, listener, load, override, placeholder, placeholder, preload, preload, priority, signature, sizeMultiplier, skipMemoryCache, sourceEncoder, thumbnail, thumbnail, transcoder, transform
public <TranscodeType> GenericRequestBuilder<ModelType,DataType,ResourceType,TranscodeType> transcode(ResourceTranscoder<ResourceType,TranscodeType> transcoder, Class<TranscodeType> transcodeClass)
TranscodeType
- The type of the resource that will be transcoded to.transcoder
- The transcoder to use.transcodeClass
- The class of the resource type that will be transcoded to.public <Y extends Target<File>> Y downloadOnly(Y target)
Y
- The type of Target.target
- The Target that will receive the cache File when the load completespublic FutureTarget<File> downloadOnly(int width, int height)
Future
that can be
used to retrieve the cache File containing the data.width
- The width in pixels to use to fetch the data.height
- The height in pixels to use to fetch the data.Future
that can be used to retrieve the cache File containing the data.