Class BaseRequestOptions<T extends BaseRequestOptions<T>>
- java.lang.Object
-
- com.bumptech.glide.request.BaseRequestOptions<T>
-
- Type Parameters:
T- The particular child implementation
- All Implemented Interfaces:
java.lang.Cloneable
- Direct Known Subclasses:
RequestBuilder,RequestOptions
public abstract class BaseRequestOptions<T extends BaseRequestOptions<T>> extends java.lang.Object implements java.lang.CloneableA base object to allow method sharing betweenRequestOptionsandRequestBuilder.This class is not meant for general use and may change at any time.
-
-
Constructor Summary
Constructors Constructor Description BaseRequestOptions()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Tapply(BaseRequestOptions<?> o)Updates this options set with any options that are explicitly set in the givenTobject and returns this object ifautoClone()is disabled or a newTobject ifautoClone()is enabled.TautoClone()TcenterCrop()AppliesCenterCropto all default types and throws an exception if asked to transform an unknown type.TcenterInside()AppliesCenterInsideto all default types,DownsampleStrategy.CENTER_INSIDEto image types and throws an exception if asked to transform an unknown type.TcircleCrop()AppliesCircleCropto all default types and throws an exception if asked to transform an unknown type.Tclone()Returns a copy of this request builder with all of the options put so far on this builder.Tdecode(java.lang.Class<?> resourceClass)TdisallowHardwareConfig()Disables the use ofBitmap.Config.HARDWAREinDownsamplerto avoid errors caused by inspecting Bitmap pixels, drawing with hardware support disabled, drawing toCanvass backed byBitmaps etc.TdiskCacheStrategy(DiskCacheStrategy strategy)Sets theDiskCacheStrategyto use for this load.TdontAnimate()Disables resource decoders that return animated resources so any resource returned will be static.TdontTransform()Removes all appliedTransformationsfor all resource classes and allows unknown resource types to be transformed without throwing an exception.Tdownsample(DownsampleStrategy strategy)TencodeFormat(android.graphics.Bitmap.CompressFormat format)Sets the value for keyBitmapEncoder.COMPRESSION_FORMAT.TencodeQuality(int quality)Sets the value for keyBitmapEncoder.COMPRESSION_QUALITY.booleanequals(java.lang.Object o)Terror(int resourceId)Sets a resource to display if a load fails.Terror(android.graphics.drawable.Drawable drawable)Sets aDrawableto display if a load fails.Tfallback(int resourceId)Sets a resource to display if the model provided toRequestBuilder.load(Object)isnull.Tfallback(android.graphics.drawable.Drawable drawable)TfitCenter()AppliesFitCenterand to all default types,DownsampleStrategy.FIT_CENTERto image types, and throws an exception if asked to transform an unknown type.Tformat(DecodeFormat format)Sets theDecodeFormatto use when decodingBitmapobjects usingDownsamplerand Glide's default GIF decoders.Tframe(long frameTimeMicros)Sets the time position of the frame to extract from a video.DiskCacheStrategygetDiskCacheStrategy()intgetErrorId()android.graphics.drawable.DrawablegetErrorPlaceholder()android.graphics.drawable.DrawablegetFallbackDrawable()intgetFallbackId()booleangetOnlyRetrieveFromCache()OptionsgetOptions()intgetOverrideHeight()intgetOverrideWidth()android.graphics.drawable.DrawablegetPlaceholderDrawable()intgetPlaceholderId()PrioritygetPriority()java.lang.Class<?>getResourceClass()KeygetSignature()floatgetSizeMultiplier()android.content.res.Resources.ThemegetTheme()java.util.Map<java.lang.Class<?>,Transformation<?>>getTransformations()booleangetUseAnimationPool()booleangetUseUnlimitedSourceGeneratorsPool()inthashCode()protected booleanisAutoCloneEnabled()booleanisDiskCacheStrategySet()booleanisLocked()booleanisMemoryCacheable()booleanisPrioritySet()booleanisSkipMemoryCacheSet()booleanisTransformationAllowed()booleanisTransformationRequired()booleanisTransformationSet()booleanisValidOverride()Tlock()Throws if any further mutations are attempted.TonlyRetrieveFromCache(boolean flag)If set to true, will only load an item if found in the cache, and will not fetch from source.ToptionalCenterCrop()AppliesCenterCropto all default types, and ignores unknown types.ToptionalCenterInside()AppliesCenterInsideto all default types,DownsampleStrategy.CENTER_INSIDEto image types, and ignores unknown types.ToptionalCircleCrop()AppliesCircleCropto all default types, and ignores unknown types.ToptionalFitCenter()AppliesFitCenterand to all default types,DownsampleStrategy.FIT_CENTERto image types, and ignores unknown types.ToptionalTransform(Transformation<android.graphics.Bitmap> transformation)Applies the givenTransformationforBitmapsto the default types (Bitmap,BitmapDrawable, andGifDrawable) and ignores unknown types.<Y> ToptionalTransform(java.lang.Class<Y> resourceClass, Transformation<Y> transformation)Applies the givenTransformationfor any decoded resource of the given type and allows unknown resource types to be ignored.Toverride(int size)Overrides theTarget's width and height with the given size.Toverride(int width, int height)Overrides theTarget's width and height with the given values.Tplaceholder(int resourceId)Sets an Android resource id for aDrawableresource to display while a resource is loading.Tplaceholder(android.graphics.drawable.Drawable drawable)Sets anDrawableto display while a resource is loading.Tpriority(Priority priority)Sets the priority for this load.protected TselfOrThrowIfLocked()<Y> Tset(Option<Y> option, Y value)Tsignature(Key signature)Sets some additional data to be mixed in to the memory and disk cache keys allowing the caller more control over when cached data is invalidated.TsizeMultiplier(float sizeMultiplier)Applies a multiplier to theTarget's size before loading the resource.TskipMemoryCache(boolean skip)Allows the loaded resource to skip the memory cache.Ttheme(android.content.res.Resources.Theme theme)Sets theResources.Themeto apply when loadingDrawables for resource ids, including those provided viaerror(int),placeholder(int), andfallback(Drawable).Ttimeout(int timeoutMs)Sets the read and write timeout for the http requests used to load the image.Ttransform(Transformation<android.graphics.Bitmap> transformation)Applies the givenTransformationforBitmapsto the default types (Bitmap,BitmapDrawable, andGifDrawable) and throws an exception if asked to transform an unknown type.Ttransform(Transformation<android.graphics.Bitmap>... transformations)Applies the givenTransformations in the given order forBitmapsto the default types (Bitmap,BitmapDrawable, andGifDrawable) and throws an exception if asked to transform an unknown type.<Y> Ttransform(java.lang.Class<Y> resourceClass, Transformation<Y> transformation)Applies the givenTransformationfor any decoded resource of the given type and throws if asked to transform an unknown resource type.Ttransforms(Transformation<android.graphics.Bitmap>... transformations)Deprecated.Deprecated due to api update, usetransform(Transformation[])insteadTuseAnimationPool(boolean flag)If set totrue, uses a specialExecutorthat is used exclusively for decoding frames of animated resources, like GIFs.TuseUnlimitedSourceGeneratorsPool(boolean flag)If set totrue, uses a cached unlimitedExecutorto run the request.
-
-
-
Method Detail
-
sizeMultiplier
@NonNull @CheckResult public T sizeMultiplier(@FloatRange(from=0.0,to=1.0) float sizeMultiplier)
Applies a multiplier to theTarget's size before loading the resource. Useful for loading thumbnails or trying to avoid loading huge resources (particularlyBitmaps on devices with overly dense screens.- Parameters:
sizeMultiplier- The multiplier to apply to theTarget's dimensions when loading the resource.- Returns:
- This request builder.
-
useUnlimitedSourceGeneratorsPool
@NonNull @CheckResult public T useUnlimitedSourceGeneratorsPool(boolean flag)
If set totrue, uses a cached unlimitedExecutorto run the request.This method should ONLY be used when a Glide load is started recursively on one of Glide's threads as part of another request. Using this method in other scenarios can lead to excessive memory usage and OOMs and/or a significant decrease in performance across an application.
If both this method and
useAnimationPool(boolean)are set, this method will be preferred anduseAnimationPool(boolean)will be ignored.
-
useAnimationPool
@NonNull @CheckResult public T useAnimationPool(boolean flag)
If set totrue, uses a specialExecutorthat is used exclusively for decoding frames of animated resources, like GIFs.The animation executor disallows network operations and must not be used for loads that may load remote data. The animation executor has fewer threads available to it than Glide's normal executors and is only useful as a way of avoiding blocking on longer and more expensive reads for critical requests like those in an animating GIF.
If both
useUnlimitedSourceGeneratorsPool(boolean)and this method are set,useUnlimitedSourceGeneratorsPool(boolean)will be preferred and this method will be ignored.
-
onlyRetrieveFromCache
@NonNull @CheckResult public T onlyRetrieveFromCache(boolean flag)
If set to true, will only load an item if found in the cache, and will not fetch from source.By 'cache' we mean both the in memory cache and both types of disk cache (
DiskCacheStrategy.DATAandDiskCacheStrategy.RESOURCE). If this flag is set totrueand the item is not in the memory cache, but it is in one of the disk caches, the load will complete asynchronously.If you'd like to only load an item from the memory cache. You can call this method with
trueand also calldiskCacheStrategy(DiskCacheStrategy)withDiskCacheStrategy.NONE
-
diskCacheStrategy
@NonNull @CheckResult public T diskCacheStrategy(@NonNull DiskCacheStrategy strategy)
Sets theDiskCacheStrategyto use for this load.Defaults to
DiskCacheStrategy.AUTOMATIC.For most applications
DiskCacheStrategy.RESOURCEis ideal. Applications that use the same resource multiple times in multiple sizes and are willing to trade off some speed and disk space in return for lower bandwidth usage may want to consider usingDiskCacheStrategy.DATAorDiskCacheStrategy.ALL.- Parameters:
strategy- The strategy to use.- Returns:
- This request builder.
-
priority
@NonNull @CheckResult public T priority(@NonNull Priority priority)
Sets the priority for this load.- Parameters:
priority- A priority.- Returns:
- This request builder.
-
placeholder
@NonNull @CheckResult public T placeholder(@Nullable android.graphics.drawable.Drawable drawable)
Sets anDrawableto display while a resource is loading.Replaces any previous calls to this method or
placeholder(int).- Parameters:
drawable- The drawable to display as a placeholder.- Returns:
- This request builder.
-
placeholder
@NonNull @CheckResult public T placeholder(@DrawableRes int resourceId)
Sets an Android resource id for aDrawableresource to display while a resource is loading.Replaces any previous calls to this method or
placeholder(Drawable)- Parameters:
resourceId- The id of the resource to use as a placeholder- Returns:
- This request builder.
-
fallback
@NonNull @CheckResult public T fallback(@Nullable android.graphics.drawable.Drawable drawable)
Sets anDrawableto display if the model provided toRequestBuilder.load(Object)isnull.If a fallback is not set, null models will cause the error drawable to be displayed. If the error drawable is not set, the placeholder will be displayed.
Replaces any previous calls to this method or
fallback(int).- Parameters:
drawable- The drawable to display as a placeholder.- Returns:
- This request builder.
- See Also:
placeholder(Drawable),placeholder(int)
-
fallback
@NonNull @CheckResult public T fallback(@DrawableRes int resourceId)
Sets a resource to display if the model provided toRequestBuilder.load(Object)isnull.If a fallback is not set, null models will cause the error drawable to be displayed. If the error drawable is not set, the placeholder will be displayed.
Replaces any previous calls to this method or
fallback(Drawable).- Parameters:
resourceId- The id of the resource to use as a fallback.- Returns:
- This request builder.
- See Also:
placeholder(Drawable),placeholder(int)
-
error
@NonNull @CheckResult public T error(@Nullable android.graphics.drawable.Drawable drawable)
Sets aDrawableto display if a load fails.Replaces any previous calls to this method or
error(int)- Parameters:
drawable- The drawable to display.- Returns:
- This request builder.
-
error
@NonNull @CheckResult public T error(@DrawableRes int resourceId)
Sets a resource to display if a load fails.Replaces any previous calls to this method or
error(Drawable)- Parameters:
resourceId- The id of the resource to use as a placeholder.- Returns:
- This request builder.
-
theme
@NonNull @CheckResult public T theme(@Nullable android.content.res.Resources.Theme theme)
Sets theResources.Themeto apply when loadingDrawables for resource ids, including those provided viaerror(int),placeholder(int), andfallback(Drawable).The
Resources.Themeprovided here will override theResources.Themeof the applicationContext.- Parameters:
theme- The theme to use when loading Drawables.- Returns:
- this request builder.
-
skipMemoryCache
@NonNull @CheckResult public T skipMemoryCache(boolean skip)
Allows the loaded resource to skip the memory cache.Note - this is not a guarantee. If a request is already pending for this resource and that request is not also skipping the memory cache, the resource will be cached in memory.
- Parameters:
skip- True to allow the resource to skip the memory cache.- Returns:
- This request builder.
-
override
@NonNull @CheckResult public T override(int width, int height)
Overrides theTarget's width and height with the given values. This is useful for thumbnails, and should only be used for other cases when you need a very specific image size.- Parameters:
width- The width in pixels to use to load the resource.height- The height in pixels to use to load the resource.- Returns:
- This request builder.
-
override
@NonNull @CheckResult public T override(int size)
Overrides theTarget's width and height with the given size.- Parameters:
size- The width and height to use.- Returns:
- This request builder.
- See Also:
override(int, int)
-
signature
@NonNull @CheckResult public T signature(@NonNull Key signature)
Sets some additional data to be mixed in to the memory and disk cache keys allowing the caller more control over when cached data is invalidated.Note - The signature does not replace the cache key, it is purely additive.
-
clone
@CheckResult public T clone()
Returns a copy of this request builder with all of the options put so far on this builder.This method returns a "deep" copy in that all non-immutable arguments are copied such that changes to one builder will not affect the other builder. However, in addition to immutable arguments, the current model is not copied copied so changes to the model will affect both builders.
Even if this object was locked, the cloned object returned from this method will not be locked.
- Overrides:
clonein classjava.lang.Object
-
decode
@NonNull @CheckResult public T decode(@NonNull java.lang.Class<?> resourceClass)
-
isTransformationAllowed
public final boolean isTransformationAllowed()
-
isTransformationSet
public final boolean isTransformationSet()
-
isLocked
public final boolean isLocked()
-
encodeFormat
@NonNull @CheckResult public T encodeFormat(@NonNull android.graphics.Bitmap.CompressFormat format)
Sets the value for keyBitmapEncoder.COMPRESSION_FORMAT.
-
encodeQuality
@NonNull @CheckResult public T encodeQuality(@IntRange(from=0L,to=100L) int quality)
Sets the value for keyBitmapEncoder.COMPRESSION_QUALITY.
-
frame
@NonNull @CheckResult public T frame(@IntRange(from=0L) long frameTimeMicros)
Sets the time position of the frame to extract from a video.This is a component option specific to
VideoDecoder. If the default video decoder is replaced or skipped because of your configuration, this option may be ignored.- Parameters:
frameTimeMicros- The time position in microseconds of the desired frame. If negative, the Android framework implementation return a representative frame.- See Also:
VideoDecoder.TARGET_FRAME
-
format
@NonNull @CheckResult public T format(@NonNull DecodeFormat format)
Sets theDecodeFormatto use when decodingBitmapobjects usingDownsamplerand Glide's default GIF decoders.DecodeFormatis a request, not a requirement. It's possible the resource will be decoded using a decoder that cannot control the format (MediaMetadataRetrieverfor example), or that the decoder may choose to ignore the requested format if it can't display the image (i.e. RGB_565 is requested, but the image has alpha).This is a component option specific to
Downsamplerand Glide's GIF decoders. If the default Bitmap decoders are replaced or skipped because of your configuration, this option may be ignored.To set only the format used when decoding
Bitmaps, useset(Option, Object)} andDownsampler.DECODE_FORMAT. To set only the format used when decoding GIF frames, useset(Option, Object)andGifOptions.DECODE_FORMAT.
-
disallowHardwareConfig
@NonNull @CheckResult public T disallowHardwareConfig()
Disables the use ofBitmap.Config.HARDWAREinDownsamplerto avoid errors caused by inspecting Bitmap pixels, drawing with hardware support disabled, drawing toCanvass backed byBitmaps etc.It's almost never safe to set
Downsampler.ALLOW_HARDWARE_CONFIGtotrueso we only provide a way to disable hardware configs entirely. If no option is set forDownsampler.ALLOW_HARDWARE_CONFIG, Glide will set the value per request based on whether or not aTransformationis applied and if one is, the type ofTransformationapplied. Built in transformations likeFitCenterandDownsampleStrategy.CenterOutsidecan safely useBitmap.Config.HARDWAREbecause they can be entirely replaced by scaling withinDownsampler.Transformations likecircleCrop()that can't be replicated byDownsamplercannot useBitmap.Config.HARDWAREbecauseBitmap.Config.HARDWAREcannot be drawn toCanvass, which is required by mostTransformations.
-
downsample
@NonNull @CheckResult public T downsample(@NonNull DownsampleStrategy strategy)
Sets theDownsampleStrategyto use when decodingBitmapsusingDownsampler.This is a component option specific to
Downsampler. If the defautlt Bitmap decoder is replaced or skipped because of your configuration, this option may be ignored.
-
timeout
@NonNull @CheckResult public T timeout(@IntRange(from=0L) int timeoutMs)
Sets the read and write timeout for the http requests used to load the image.This is a component option specific to Glide's default networking library and
HttpGlideUrlLoader. If you use any other networking library including Glide's Volley or OkHttp integration libraries, this option will be ignored.- Parameters:
timeoutMs- The read and write timeout in milliseconds.- See Also:
HttpGlideUrlLoader.TIMEOUT
-
optionalCenterCrop
@NonNull @CheckResult public T optionalCenterCrop()
AppliesCenterCropto all default types, and ignores unknown types.This will override previous calls to
dontTransform().
-
centerCrop
@NonNull @CheckResult public T centerCrop()
AppliesCenterCropto all default types and throws an exception if asked to transform an unknown type.this will override previous calls to
dontTransform()()}.
-
optionalFitCenter
@NonNull @CheckResult public T optionalFitCenter()
AppliesFitCenterand to all default types,DownsampleStrategy.FIT_CENTERto image types, and ignores unknown types.This will override previous calls to
dontTransform()and previous calls todownsample(DownsampleStrategy).
-
fitCenter
@NonNull @CheckResult public T fitCenter()
AppliesFitCenterand to all default types,DownsampleStrategy.FIT_CENTERto image types, and throws an exception if asked to transform an unknown type.This will override previous calls to
dontTransform()and previous calls todownsample(DownsampleStrategy).
-
optionalCenterInside
@NonNull @CheckResult public T optionalCenterInside()
AppliesCenterInsideto all default types,DownsampleStrategy.CENTER_INSIDEto image types, and ignores unknown types.This will override previous calls to
dontTransform()and previous calls todownsample(DownsampleStrategy).
-
centerInside
@NonNull @CheckResult public T centerInside()
AppliesCenterInsideto all default types,DownsampleStrategy.CENTER_INSIDEto image types and throws an exception if asked to transform an unknown type.This will override previous calls to
dontTransform()and previous calls todownsample(DownsampleStrategy).
-
optionalCircleCrop
@NonNull @CheckResult public T optionalCircleCrop()
AppliesCircleCropto all default types, and ignores unknown types.This will override previous calls to
dontTransform().- See Also:
optionalTransform(Transformation),circleCrop()
-
circleCrop
@NonNull @CheckResult public T circleCrop()
AppliesCircleCropto all default types and throws an exception if asked to transform an unknown type.This will override previous calls to
dontTransform().
-
transform
@NonNull @CheckResult public T transform(@NonNull Transformation<android.graphics.Bitmap> transformation)
Applies the givenTransformationforBitmapsto the default types (Bitmap,BitmapDrawable, andGifDrawable) and throws an exception if asked to transform an unknown type.This will override previous calls to
dontTransform().- Parameters:
transformation- AnyTransformationforBitmaps.- See Also:
optionalTransform(Transformation),optionalTransform(Class, Transformation)
-
transform
@NonNull @CheckResult public T transform(@NonNull Transformation<android.graphics.Bitmap>... transformations)
Applies the givenTransformations in the given order forBitmapsto the default types (Bitmap,BitmapDrawable, andGifDrawable) and throws an exception if asked to transform an unknown type.This will override previous calls to
dontTransform().- Parameters:
transformations- One or moreTransformations forBitmaps.- See Also:
optionalTransform(Transformation),optionalTransform(Class, Transformation)
-
transforms
@NonNull @CheckResult @Deprecated public T transforms(@NonNull Transformation<android.graphics.Bitmap>... transformations)
Deprecated.Deprecated due to api update, usetransform(Transformation[])insteadApplies the givenTransformations in the given order forBitmapsto the default types (Bitmap,BitmapDrawable, andGifDrawable) and throws an exception if asked to transform an unknown type.This will override previous calls to
dontTransform().- Parameters:
transformations- One or moreTransformations forBitmaps.- See Also:
optionalTransform(Transformation),optionalTransform(Class, Transformation)
-
optionalTransform
@NonNull @CheckResult public T optionalTransform(@NonNull Transformation<android.graphics.Bitmap> transformation)
Applies the givenTransformationforBitmapsto the default types (Bitmap,BitmapDrawable, andGifDrawable) and ignores unknown types.This will override previous calls to
dontTransform().- Parameters:
transformation- AnyTransformationforBitmaps.- See Also:
transform(Transformation),transform(Class, Transformation)
-
optionalTransform
@NonNull @CheckResult public <Y> T optionalTransform(@NonNull java.lang.Class<Y> resourceClass, @NonNull Transformation<Y> transformation)
Applies the givenTransformationfor any decoded resource of the given type and allows unknown resource types to be ignored.Users can apply different transformations for each resource class. Applying a
Transformationfor a resource type that already has aTransformationwill override the previous call.If any calls are made to the non-optional transform methods, then attempting to transform an unknown resource class will throw an exception. To allow unknown types, users must always call the optional version of each method.
This will override previous calls to
dontTransform().- Parameters:
resourceClass- The type of resource to transform.transformation- TheTransformationto apply.
-
transform
@NonNull @CheckResult public <Y> T transform(@NonNull java.lang.Class<Y> resourceClass, @NonNull Transformation<Y> transformation)
Applies the givenTransformationfor any decoded resource of the given type and throws if asked to transform an unknown resource type.This will override previous calls to
dontTransform().- Parameters:
resourceClass- The type of resource to transform.transformation- TheTransformationto apply.- See Also:
optionalTransform(Class, Transformation)
-
dontTransform
@NonNull @CheckResult public T dontTransform()
Removes all appliedTransformationsfor all resource classes and allows unknown resource types to be transformed without throwing an exception.
-
dontAnimate
@NonNull @CheckResult public T dontAnimate()
Disables resource decoders that return animated resources so any resource returned will be static.To disable transitions (fades etc) use
TransitionOptions.dontTransition()
-
apply
@NonNull @CheckResult public T apply(@NonNull BaseRequestOptions<?> o)
Updates this options set with any options that are explicitly set in the givenTobject and returns this object ifautoClone()is disabled or a newTobject ifautoClone()is enabled.#applyonly replaces those values that are explicitly set in the givenT. If you need to completely reset all previously set options, create a newTobject instead of using this method.The options that will be set to values in the returned
Tobject is the intersection of the set of options in thisTobject and the givenTobject that were explicitly set. If the values of any of the options conflict, the values in the returnedTobject will be set to those in the givenTobject.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
lock
@NonNull public T lock()
Throws if any further mutations are attempted.Once locked, the only way to unlock is to use
clone()
-
autoClone
@NonNull public T autoClone()
Similar tolock()except that mutations cause aclone()operation to happen before the mutation resulting in all methods returning a new Object and leaving the original locked object unmodified.Auto clone is not retained by cloned objects returned from mutations. The cloned objects are mutable and are not locked.
-
selfOrThrowIfLocked
@NonNull protected final T selfOrThrowIfLocked()
-
isAutoCloneEnabled
protected final boolean isAutoCloneEnabled()
-
isDiskCacheStrategySet
public final boolean isDiskCacheStrategySet()
-
isSkipMemoryCacheSet
public final boolean isSkipMemoryCacheSet()
-
getTransformations
@NonNull public final java.util.Map<java.lang.Class<?>,Transformation<?>> getTransformations()
-
isTransformationRequired
public final boolean isTransformationRequired()
-
getOptions
@NonNull public final Options getOptions()
-
getResourceClass
@NonNull public final java.lang.Class<?> getResourceClass()
-
getDiskCacheStrategy
@NonNull public final DiskCacheStrategy getDiskCacheStrategy()
-
getErrorPlaceholder
@Nullable public final android.graphics.drawable.Drawable getErrorPlaceholder()
-
getErrorId
public final int getErrorId()
-
getPlaceholderId
public final int getPlaceholderId()
-
getPlaceholderDrawable
@Nullable public final android.graphics.drawable.Drawable getPlaceholderDrawable()
-
getFallbackId
public final int getFallbackId()
-
getFallbackDrawable
@Nullable public final android.graphics.drawable.Drawable getFallbackDrawable()
-
getTheme
@Nullable public final android.content.res.Resources.Theme getTheme()
-
isMemoryCacheable
public final boolean isMemoryCacheable()
-
getSignature
@NonNull public final Key getSignature()
-
isPrioritySet
public final boolean isPrioritySet()
-
getPriority
@NonNull public final Priority getPriority()
-
getOverrideWidth
public final int getOverrideWidth()
-
isValidOverride
public final boolean isValidOverride()
-
getOverrideHeight
public final int getOverrideHeight()
-
getSizeMultiplier
public final float getSizeMultiplier()
-
getUseUnlimitedSourceGeneratorsPool
public final boolean getUseUnlimitedSourceGeneratorsPool()
-
getUseAnimationPool
public final boolean getUseAnimationPool()
-
getOnlyRetrieveFromCache
public final boolean getOnlyRetrieveFromCache()
-
-