BaseRequestOptions
abstract class BaseRequestOptions<T : BaseRequestOptions<T>?> : Cloneable
Content copied to clipboard
A base object to allow method sharing between RequestOptions and .
This class is not meant for general use and may change at any time.
Parameters
<T>
The particular child implementation
Functions
Link copied to clipboard
Applies CenterCrop to all default types and throws an exception if asked to transform an unknown type.
Link copied to clipboard
Applies CenterInside to all default types, CENTER_INSIDE to image types and throws an exception if asked to transform an unknown type.
Link copied to clipboard
Applies CircleCrop to all default types and throws an exception if asked to transform an unknown type.
Link copied to clipboard
Disables the use of HARDWARE in Downsampler to avoid errors caused by inspecting Bitmap pixels, drawing with hardware support disabled, drawing to android.graphics.
Link copied to clipboard
Sets the DiskCacheStrategy to use for this load.
Link copied to clipboard
Disables resource decoders that return animated resources so any resource returned will be static.
Link copied to clipboard
Removes all applied Transformations for all resource classes and allows unknown resource types to be transformed without throwing an exception.
Link copied to clipboard
Sets the DownsampleStrategy to use when decoding Bitmaps using .
Link copied to clipboard
Sets the value for key COMPRESSION_FORMAT.
Link copied to clipboard
Sets the value for key COMPRESSION_QUALITY.
Link copied to clipboard
Applies FitCenter and to all default types, FIT_CENTER to image types, and throws an exception if asked to transform an unknown type.
Link copied to clipboard
Sets the DecodeFormat to use when decoding Bitmap objects using and Glide's default GIF decoders.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
If set to true, will only load an item if found in the cache, and will not fetch from source.
Link copied to clipboard
Applies com.bumptech.glide.load.resource.bitmap.CenterCrop to all default types, and ignores unknown types.
Link copied to clipboard
Applies com.bumptech.glide.load.resource.bitmap.CenterInside to all default types, CENTER_INSIDE to image types, and ignores unknown types.
Link copied to clipboard
Applies CircleCrop to all default types, and ignores unknown types.
Link copied to clipboard
Applies FitCenter and to all default types, FIT_CENTER to image types, and ignores unknown types.
Link copied to clipboard
Applies the given Transformation for Bitmaps to the default types (Bitmap, android.graphics.drawable.
open fun <Y> optionalTransform(resourceClass: Class<Y>, transformation: Transformation<Y>): T
Content copied to clipboard
Applies the given Transformation for any decoded resource of the given type and allows unknown resource types to be ignored.
Link copied to clipboard
Overrides the com.bumptech.glide.request.target.Target's width and height with the given size.
Overrides the com.bumptech.glide.request.target.Target's width and height with the given values.
Link copied to clipboard
Sets an Drawable to display while a resource is loading.
Sets an Android resource id for a Drawable resource to display while a resource is loading.
Link copied to clipboard
Applies a multiplier to the com.bumptech.glide.request.target.Target's size before loading the resource.
Link copied to clipboard
Allows the loaded resource to skip the memory cache.
Link copied to clipboard
Applies the given Transformations in the given order for Bitmaps to the default types (Bitmap, android.graphics.drawable.
Applies the given Transformation for Bitmaps to the default types (Bitmap, android.graphics.drawable.
open fun <Y> transform(resourceClass: Class<Y>, transformation: Transformation<Y>): T
Content copied to clipboard
Applies the given Transformation for any decoded resource of the given type and throws if asked to transform an unknown resource type.
Link copied to clipboard
Applies the given Transformations in the given order for Bitmaps to the default types (Bitmap, android.graphics.drawable.
Link copied to clipboard
If set to
true
, uses a special java.util.concurrent.Executor that is used exclusively for decoding frames of animated resources, like GIFs.Link copied to clipboard
If set to
true
, uses a cached unlimited java.util.concurrent.Executor to run the request.