RequestOptions
Provides type independent options to customize loads with Glide.
Non-final to allow Glide's generated classes to be assignable to their non-generated equivalents.
Functions
Link copied to clipboard
open fun bitmapTransform(transformation: Transformation<Bitmap>): RequestOptions
Content copied to clipboard
Returns a RequestOptions object with transform set.
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
Returns a RequestOptions object with centerCrop set.
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
Returns a RequestOptions object with centerInside set.
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
Returns a RequestOptions object with circleCrop set.
Link copied to clipboard
Returns a RequestOptions object with decode set.
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
open fun diskCacheStrategyOf(diskCacheStrategy: DiskCacheStrategy): RequestOptions
Content copied to clipboard
Returns a RequestOptions object with diskCacheStrategy set.
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
Returns a RequestOptions object with downsample set.
Link copied to clipboard
Sets the value for key COMPRESSION_FORMAT.
Link copied to clipboard
Returns a com.bumptech.glide.request.RequestOptions with encodeFormat called with the given format.
Link copied to clipboard
Sets the value for key COMPRESSION_QUALITY.
Link copied to clipboard
Returns a com.bumptech.glide.request.RequestOptions with encodeQuality called with the given quality.
Link copied to clipboard
Returns a RequestOptions object with error set.
Returns a RequestOptions object with error} set.
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
Returns a RequestOptions object with fitCenter set.
Link copied to clipboard
Sets the DecodeFormat to use when decoding Bitmap objects using and Glide's default GIF decoders.
Link copied to clipboard
Returns a RequestOptions object with format set.
Link copied to clipboard
Returns a RequestOptions object with frame set.
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
Returns a new com.bumptech.glide.request.RequestOptions with dontAnimate called.
Link copied to clipboard
Returns a RequestOptions object with dontTransform set.
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
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
Returns a RequestOptions with override set where both the width and height are the given size.
Returns a RequestOptions object with override} set.
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
Returns a RequestOptions object with placeholder set.
Link copied to clipboard
Returns a RequestOptions object with priority} set.
Link copied to clipboard
Returns a RequestOptions object with signature set.
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
Returns a RequestOptions object with sizeMultiplier set.
Link copied to clipboard
Allows the loaded resource to skip the memory cache.
Link copied to clipboard
Returns a RequestOptions object with skipMemoryCache set.
Link copied to clipboard
Returns a RequestOptions object with timeout set.
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.