-
- All Implemented Interfaces:
-
java.lang.Cloneable
public class RequestOptions extends BaseRequestOptions<RequestOptions>
Provides type independent options to customize loads with ImageModule.
Non-final to allow ImageModule generated classes to be assignable to their non-generated equivalents.
-
-
Method Summary
-
Methods inherited from class com.mobwith.imgmodule.request.BaseRequestOptions
apply, autoClone, centerCrop, centerInside, circleCrop, clone, decode, disallowHardwareConfig, diskCacheStrategy, dontAnimate, dontTransform, downsample, encodeFormat, encodeQuality, equals, 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, hashCode, isDiskCacheStrategySet, isLocked, isMemoryCacheable, isPrioritySet, isSkipMemoryCacheSet, isTransformationAllowed, isTransformationRequired, isTransformationSet, isValidOverride, lock, onlyRetrieveFromCache, optionalCenterCrop, optionalCenterInside, optionalCircleCrop, optionalFitCenter, optionalTransform, optionalTransform, override, override, placeholder, placeholder, priority, set, signature, sizeMultiplier, skipMemoryCache, theme, timeout, transform, transform, transform, transforms, useAnimationPool, useUnlimitedSourceGeneratorsPool -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
sizeMultiplierOf
@NonNull()@CheckResult() static RequestOptions sizeMultiplierOf(@FloatRange(from = 0, to = 1) float sizeMultiplier)
Returns a RequestOptions object with sizeMultiplier set.
-
diskCacheStrategyOf
@NonNull()@CheckResult() static RequestOptions diskCacheStrategyOf(@NonNull() DiskCacheStrategy diskCacheStrategy)
Returns a RequestOptions object with diskCacheStrategy set.
-
priorityOf
@NonNull()@CheckResult() static RequestOptions priorityOf(@NonNull() Priority priority)
Returns a RequestOptions object with priority}set.
-
placeholderOf
@NonNull()@CheckResult() static RequestOptions placeholderOf(@Nullable() Drawable placeholder)
Returns a RequestOptions object with placeholder set.
-
placeholderOf
@NonNull()@CheckResult() static RequestOptions placeholderOf(@DrawableRes() int placeholderId)
Returns a RequestOptions object with placeholder set.
-
errorOf
@NonNull()@CheckResult() static RequestOptions errorOf(@Nullable() Drawable errorDrawable)
Returns a RequestOptions object with error set.
-
errorOf
@NonNull()@CheckResult() static RequestOptions errorOf(@DrawableRes() int errorId)
Returns a RequestOptions object with error} set.
-
skipMemoryCacheOf
@NonNull()@CheckResult() static RequestOptions skipMemoryCacheOf(boolean skipMemoryCache)
Returns a RequestOptions object with skipMemoryCache set.
-
overrideOf
@NonNull()@CheckResult() static RequestOptions overrideOf(int width, int height)
Returns a RequestOptions object with override} set.
-
overrideOf
@NonNull()@CheckResult() static RequestOptions overrideOf(int size)
Returns a RequestOptions with override set where both the width andheight are the given size.
-
signatureOf
@NonNull()@CheckResult() static RequestOptions signatureOf(@NonNull() Key signature)
Returns a RequestOptions object with signature set.
-
fitCenterTransform
@NonNull()@CheckResult() static RequestOptions fitCenterTransform()
Returns a RequestOptions object with fitCenter set.
-
centerInsideTransform
@NonNull()@CheckResult() static RequestOptions centerInsideTransform()
Returns a RequestOptions object with centerInside set.
-
centerCropTransform
@NonNull()@CheckResult() static RequestOptions centerCropTransform()
Returns a RequestOptions object with centerCrop set.
-
circleCropTransform
@NonNull()@CheckResult() static RequestOptions circleCropTransform()
Returns a RequestOptions object with circleCrop set.
-
bitmapTransform
@NonNull()@CheckResult() static RequestOptions bitmapTransform(@NonNull() Transformation<Bitmap> transformation)
Returns a RequestOptions object with transform set.
-
noTransformation
@NonNull()@CheckResult() static RequestOptions noTransformation()
Returns a RequestOptions object with dontTransform set.
-
option
@NonNull()@CheckResult() static <T> RequestOptions option(@NonNull() Option<T> option, @NonNull() T value)
Returns a RequestOptions object with the given Option set via .
-
decodeTypeOf
@NonNull()@CheckResult() static RequestOptions decodeTypeOf(@NonNull() Class<out Object> resourceClass)
Returns a RequestOptions object with decode set.
-
formatOf
@NonNull()@CheckResult() static RequestOptions formatOf(@NonNull() DecodeFormat format)
Returns a RequestOptions object with format set.
-
frameOf
@NonNull()@CheckResult() static RequestOptions frameOf(@IntRange(from = 0) long frameTimeMicros)
Returns a RequestOptions object with frame set.
-
downsampleOf
@NonNull()@CheckResult() static RequestOptions downsampleOf(@NonNull() DownsampleStrategy strategy)
Returns a RequestOptions object with downsample set.
-
timeoutOf
@NonNull()@CheckResult() static RequestOptions timeoutOf(@IntRange(from = 0) int timeout)
Returns a RequestOptions object with timeout set.
-
encodeQualityOf
@NonNull()@CheckResult() static RequestOptions encodeQualityOf(@IntRange(from = 0, to = 100) int quality)
Returns a com.mobwith.imgmodule.request.RequestOptions with encodeQuality called with the given quality.
-
encodeFormatOf
@NonNull()@CheckResult() static RequestOptions encodeFormatOf(@NonNull() Bitmap.CompressFormat format)
Returns a com.mobwith.imgmodule.request.RequestOptions with called with the given format.
-
noAnimation
@NonNull()@CheckResult() static RequestOptions noAnimation()
Returns a new com.mobwith.imgmodule.request.RequestOptions with dontAnimate called.
-
-
-
-