-
public final class Options
-
-
Field Summary
Fields Modifier and Type Field Description private final Contextcontextprivate final Bitmap.Configconfigprivate final ColorSpacecolorSpaceprivate final Sizesizeprivate final Scalescaleprivate final BooleanallowInexactSizeprivate final BooleanallowRgb565private final BooleanpremultipliedAlphaprivate final StringdiskCacheKeyprivate final Headersheadersprivate final Tagstagsprivate final Parametersparametersprivate final CachePolicymemoryCachePolicyprivate final CachePolicydiskCachePolicyprivate final CachePolicynetworkCachePolicy
-
Constructor Summary
Constructors Constructor Description Options(Context context, Bitmap.Config config, ColorSpace colorSpace, Size size, Scale scale, Boolean allowInexactSize, Boolean allowRgb565, Boolean premultipliedAlpha, String diskCacheKey, Headers headers, Tags tags, Parameters parameters, CachePolicy memoryCachePolicy, CachePolicy diskCachePolicy, CachePolicy networkCachePolicy)
-
Method Summary
Modifier and Type Method Description final ContextgetContext()The Context used to execute this request. final Bitmap.ConfiggetConfig()The requested config for any Bitmaps. final ColorSpacegetColorSpace()The preferred color space for any Bitmaps. final SizegetSize()The requested output size for the image request. final ScalegetScale()The scaling algorithm for how to fit the source image's dimensions into the target's dimensions. final BooleangetAllowInexactSize()'true' if the output image does not need to fit/fill the target's dimensions exactly. final BooleangetAllowRgb565()'true' if a component is allowed to use Bitmap.Config.RGB_565 as an optimization. final BooleangetPremultipliedAlpha()'true' if the color (RGB) channels of the decoded image should be pre-multiplied by the alpha channel. final StringgetDiskCacheKey()The cache key to use when persisting images to the disk cache or 'null' if the component can compute its own. final HeadersgetHeaders()The header fields to use for any network requests. final TagsgetTags()A map of custom objects. final ParametersgetParameters()A map of custom parameters. final CachePolicygetMemoryCachePolicy()Determines if this request is allowed to read/write from/to memory. final CachePolicygetDiskCachePolicy()Determines if this request is allowed to read/write from/to disk. final CachePolicygetNetworkCachePolicy()Determines if this request is allowed to read from the network. final Optionscopy(Context context, Bitmap.Config config, ColorSpace colorSpace, Size size, Scale scale, Boolean allowInexactSize, Boolean allowRgb565, Boolean premultipliedAlpha, String diskCacheKey, Headers headers, Tags tags, Parameters parameters, CachePolicy memoryCachePolicy, CachePolicy diskCachePolicy, CachePolicy networkCachePolicy)Booleanequals(Object other)IntegerhashCode()-
-
Constructor Detail
-
Options
Options(Context context, Bitmap.Config config, ColorSpace colorSpace, Size size, Scale scale, Boolean allowInexactSize, Boolean allowRgb565, Boolean premultipliedAlpha, String diskCacheKey, Headers headers, Tags tags, Parameters parameters, CachePolicy memoryCachePolicy, CachePolicy diskCachePolicy, CachePolicy networkCachePolicy)
-
-
Method Detail
-
getContext
final Context getContext()
The Context used to execute this request.
-
getConfig
final Bitmap.Config getConfig()
The requested config for any Bitmaps.
-
getColorSpace
final ColorSpace getColorSpace()
The preferred color space for any Bitmaps. If 'null', components should typically default to ColorSpace.Rgb.
-
getScale
final Scale getScale()
The scaling algorithm for how to fit the source image's dimensions into the target's dimensions.
-
getAllowInexactSize
final Boolean getAllowInexactSize()
'true' if the output image does not need to fit/fill the target's dimensions exactly. For instance, if 'true' BitmapFactoryDecoder will not decode an image at a larger size than its source dimensions as an optimization.
-
getAllowRgb565
final Boolean getAllowRgb565()
'true' if a component is allowed to use Bitmap.Config.RGB_565 as an optimization. As RGB_565 does not have an alpha channel, components should only use RGB_565 if the image is guaranteed to not use alpha.
-
getPremultipliedAlpha
final Boolean getPremultipliedAlpha()
'true' if the color (RGB) channels of the decoded image should be pre-multiplied by the alpha channel. The default behavior is to enable pre-multiplication but in some environments it can be necessary to disable this feature to leave the source pixels unmodified.
-
getDiskCacheKey
final String getDiskCacheKey()
The cache key to use when persisting images to the disk cache or 'null' if the component can compute its own.
-
getHeaders
final Headers getHeaders()
The header fields to use for any network requests.
-
getTags
final Tags getTags()
A map of custom objects. These are used to attach custom data to a request.
-
getParameters
final Parameters getParameters()
A map of custom parameters. These are used to pass custom data to a component.
-
getMemoryCachePolicy
final CachePolicy getMemoryCachePolicy()
Determines if this request is allowed to read/write from/to memory.
-
getDiskCachePolicy
final CachePolicy getDiskCachePolicy()
Determines if this request is allowed to read/write from/to disk.
-
getNetworkCachePolicy
final CachePolicy getNetworkCachePolicy()
Determines if this request is allowed to read from the network.
-
copy
final Options copy(Context context, Bitmap.Config config, ColorSpace colorSpace, Size size, Scale scale, Boolean allowInexactSize, Boolean allowRgb565, Boolean premultipliedAlpha, String diskCacheKey, Headers headers, Tags tags, Parameters parameters, CachePolicy memoryCachePolicy, CachePolicy diskCachePolicy, CachePolicy networkCachePolicy)
-
-
-
-