Package com.bumptech.glide.request
Class RequestOptions
java.lang.Object
com.bumptech.glide.request.BaseRequestOptions<RequestOptions>
com.bumptech.glide.request.RequestOptions
- All Implemented Interfaces:
Cloneable
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.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic RequestOptionsbitmapTransform(Transformation<Bitmap> transformation) Returns aRequestOptionsobject withBaseRequestOptions.transform(Transformation)set.static RequestOptionsReturns aRequestOptionsobject withBaseRequestOptions.centerCrop()set.static RequestOptionsReturns aRequestOptionsobject withBaseRequestOptions.centerInside()set.static RequestOptionsReturns aRequestOptionsobject withBaseRequestOptions.circleCrop()set.static RequestOptionsdecodeTypeOf(Class<?> resourceClass) Returns aRequestOptionsobject withBaseRequestOptions.decode(Class)set.static RequestOptionsdiskCacheStrategyOf(DiskCacheStrategy diskCacheStrategy) Returns aRequestOptionsobject withBaseRequestOptions.diskCacheStrategy(DiskCacheStrategy)set.static RequestOptionsdownsampleOf(DownsampleStrategy strategy) Returns aRequestOptionsobject withBaseRequestOptions.downsample(DownsampleStrategy)set.static RequestOptionsencodeFormatOf(Bitmap.CompressFormat format) Returns aRequestOptionswithBaseRequestOptions.encodeFormat(android.graphics.Bitmap.CompressFormat)called with the given format.static RequestOptionsencodeQualityOf(int quality) Returns aRequestOptionswithBaseRequestOptions.encodeQuality(int)called with the given quality.booleanstatic RequestOptionserrorOf(int errorId) Returns aRequestOptionsobject withBaseRequestOptions.error(int)} set.static RequestOptionsReturns aRequestOptionsobject withBaseRequestOptions.error(Drawable)set.static RequestOptionsReturns aRequestOptionsobject withBaseRequestOptions.fitCenter()set.static RequestOptionsformatOf(DecodeFormat format) Returns aRequestOptionsobject withBaseRequestOptions.format(DecodeFormat)set.static RequestOptionsframeOf(long frameTimeMicros) Returns aRequestOptionsobject withBaseRequestOptions.frame(long)set.inthashCode()static RequestOptionsReturns a newRequestOptionswithBaseRequestOptions.dontAnimate()called.static RequestOptionsReturns aRequestOptionsobject withBaseRequestOptions.dontTransform()set.static <T> RequestOptionsReturns aRequestOptionsobject with the givenOptionset viaBaseRequestOptions.set(Option, Object).static RequestOptionsoverrideOf(int size) Returns aRequestOptionswithBaseRequestOptions.override(int, int)set where both the width and height are the given size.static RequestOptionsoverrideOf(int width, int height) Returns aRequestOptionsobject withBaseRequestOptions.override(int, int)} set.static RequestOptionsplaceholderOf(int placeholderId) Returns aRequestOptionsobject withBaseRequestOptions.placeholder(int)set.static RequestOptionsplaceholderOf(Drawable placeholder) Returns aRequestOptionsobject withBaseRequestOptions.placeholder(Drawable)set.static RequestOptionspriorityOf(Priority priority) Returns aRequestOptionsobject withBaseRequestOptions.priority(Priority)} set.static RequestOptionssignatureOf(Key signature) Returns aRequestOptionsobject withBaseRequestOptions.signatureset.static RequestOptionssizeMultiplierOf(float sizeMultiplier) Returns aRequestOptionsobject withBaseRequestOptions.sizeMultiplier(float)set.static RequestOptionsskipMemoryCacheOf(boolean skipMemoryCache) Returns aRequestOptionsobject withBaseRequestOptions.skipMemoryCache(boolean)set.static RequestOptionstimeoutOf(int timeout) Returns aRequestOptionsobject withBaseRequestOptions.timeout(int)set.Methods inherited from class com.bumptech.glide.request.BaseRequestOptions
apply, autoClone, centerCrop, centerInside, circleCrop, clone, decode, disallowHardwareConfig, diskCacheStrategy, dontAnimate, dontTransform, downsample, encodeFormat, encodeQuality, error, error, fallback, fallback, fitCenter, format, frame, getDiskCacheStrategy, getErrorId, getErrorPlaceholder, getFallbackDrawable, getFallbackId, getOnlyRetrieveFromCache, getOptions, getOverrideHeight, getOverrideWidth, getPlaceholderDrawable, getPlaceholderId, getPriority, getResourceClass, getSignature, getSizeMultiplier, getTheme, getTransformations, getUseAnimationPool, getUseUnlimitedSourceGeneratorsPool, isAutoCloneEnabled, isDiskCacheStrategySet, isEquivalentTo, isLocked, isMemoryCacheable, isPrioritySet, isSkipMemoryCacheSet, isTransformationAllowed, isTransformationRequired, isTransformationSet, isValidOverride, lock, onlyRetrieveFromCache, optionalCenterCrop, optionalCenterInside, optionalCircleCrop, optionalFitCenter, optionalTransform, optionalTransform, override, override, placeholder, placeholder, priority, selfOrThrowIfLocked, set, signature, sizeMultiplier, skipMemoryCache, theme, timeout, transform, transform, transform, transforms, useAnimationPool, useUnlimitedSourceGeneratorsPool
-
Constructor Details
-
RequestOptions
public RequestOptions()
-
-
Method Details
-
sizeMultiplierOf
@NonNull @CheckResult public static RequestOptions sizeMultiplierOf(@FloatRange(from=0.0,to=1.0) float sizeMultiplier) Returns aRequestOptionsobject withBaseRequestOptions.sizeMultiplier(float)set. -
diskCacheStrategyOf
@NonNull @CheckResult public static RequestOptions diskCacheStrategyOf(@NonNull DiskCacheStrategy diskCacheStrategy) Returns aRequestOptionsobject withBaseRequestOptions.diskCacheStrategy(DiskCacheStrategy)set. -
priorityOf
Returns aRequestOptionsobject withBaseRequestOptions.priority(Priority)} set. -
placeholderOf
Returns aRequestOptionsobject withBaseRequestOptions.placeholder(Drawable)set. -
placeholderOf
Returns aRequestOptionsobject withBaseRequestOptions.placeholder(int)set. -
errorOf
Returns aRequestOptionsobject withBaseRequestOptions.error(Drawable)set. -
errorOf
Returns aRequestOptionsobject withBaseRequestOptions.error(int)} set. -
skipMemoryCacheOf
Returns aRequestOptionsobject withBaseRequestOptions.skipMemoryCache(boolean)set. -
overrideOf
Returns aRequestOptionsobject withBaseRequestOptions.override(int, int)} set. -
overrideOf
Returns aRequestOptionswithBaseRequestOptions.override(int, int)set where both the width and height are the given size. -
signatureOf
Returns aRequestOptionsobject withBaseRequestOptions.signatureset. -
fitCenterTransform
Returns aRequestOptionsobject withBaseRequestOptions.fitCenter()set. -
centerInsideTransform
Returns aRequestOptionsobject withBaseRequestOptions.centerInside()set. -
centerCropTransform
Returns aRequestOptionsobject withBaseRequestOptions.centerCrop()set. -
circleCropTransform
Returns aRequestOptionsobject withBaseRequestOptions.circleCrop()set. -
bitmapTransform
@NonNull @CheckResult public static RequestOptions bitmapTransform(@NonNull Transformation<Bitmap> transformation) Returns aRequestOptionsobject withBaseRequestOptions.transform(Transformation)set. -
noTransformation
Returns aRequestOptionsobject withBaseRequestOptions.dontTransform()set. -
option
@NonNull @CheckResult public static <T> RequestOptions option(@NonNull Option<T> option, @NonNull T value) Returns aRequestOptionsobject with the givenOptionset viaBaseRequestOptions.set(Option, Object). -
decodeTypeOf
Returns aRequestOptionsobject withBaseRequestOptions.decode(Class)set. -
formatOf
Returns aRequestOptionsobject withBaseRequestOptions.format(DecodeFormat)set. -
frameOf
Returns aRequestOptionsobject withBaseRequestOptions.frame(long)set. -
downsampleOf
@NonNull @CheckResult public static RequestOptions downsampleOf(@NonNull DownsampleStrategy strategy) Returns aRequestOptionsobject withBaseRequestOptions.downsample(DownsampleStrategy)set. -
timeoutOf
Returns aRequestOptionsobject withBaseRequestOptions.timeout(int)set. -
encodeQualityOf
@NonNull @CheckResult public static RequestOptions encodeQualityOf(@IntRange(from=0L,to=100L) int quality) Returns aRequestOptionswithBaseRequestOptions.encodeQuality(int)called with the given quality. -
encodeFormatOf
@NonNull @CheckResult public static RequestOptions encodeFormatOf(@NonNull Bitmap.CompressFormat format) Returns aRequestOptionswithBaseRequestOptions.encodeFormat(android.graphics.Bitmap.CompressFormat)called with the given format. -
noAnimation
Returns a newRequestOptionswithBaseRequestOptions.dontAnimate()called. -
equals
- Overrides:
equalsin classBaseRequestOptions<RequestOptions>
-
hashCode
public int hashCode()- Overrides:
hashCodein classBaseRequestOptions<RequestOptions>
-