Data
- The type of data that will be fetched.ResourceType
- The type of intermediate resource that will be decoded within one of the
DecodePath
s.Transcode
- The type of resource that will be returned as the result if the load and
one of the decode paths succeeds.public class LoadPath<Data,ResourceType,Transcode> extends Object
DataFetcher
for a given data class, attempts to
fetch the data and then run it through one or more
DecodePath
s.Constructor and Description |
---|
LoadPath(Class<Data> dataClass,
Class<ResourceType> resourceClass,
Class<Transcode> transcodeClass,
List<DecodePath<Data,ResourceType,Transcode>> decodePaths,
Pools.Pool<List<Throwable>> listPool) |
Modifier and Type | Method and Description |
---|---|
Class<Data> |
getDataClass() |
Resource<Transcode> |
load(DataRewinder<Data> rewinder,
Options options,
int width,
int height,
com.bumptech.glide.load.engine.DecodePath.DecodeCallback<ResourceType> decodeCallback) |
String |
toString() |
public LoadPath(Class<Data> dataClass, Class<ResourceType> resourceClass, Class<Transcode> transcodeClass, List<DecodePath<Data,ResourceType,Transcode>> decodePaths, Pools.Pool<List<Throwable>> listPool)
public Resource<Transcode> load(DataRewinder<Data> rewinder, @NonNull Options options, int width, int height, com.bumptech.glide.load.engine.DecodePath.DecodeCallback<ResourceType> decodeCallback) throws GlideException
GlideException