java.lang.Object | |
↳ | com.facebook.imagepipeline.common.ImageDecodeOptionsBuilder |
Builder for ImageDecodeOptions
.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
ImageDecodeOptionsBuilder() |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
ImageDecodeOptions |
build()
Builds the immutable
ImageDecodeOptions instance. | ||||||||||
Bitmap.Config |
getBitmapConfig()
Gets which config image will be decode with;
| ||||||||||
ImageDecoder |
getCustomImageDecoder()
Get the custom image decoder, if one has been set.
| ||||||||||
boolean |
getDecodeAllFrames()
Gets whether to decode all the frames and store them in memory.
| ||||||||||
boolean |
getDecodePreviewFrame()
Gets whether to decode a preview frame for animated images.
| ||||||||||
boolean |
getForceStaticImage()
Gets whether to force animated image formats to be decoded as static, non-animated images.
| ||||||||||
int |
getMinDecodeIntervalMs()
Gets the minimum decode interval.
| ||||||||||
boolean |
getUseLastFrameForPreview()
Gets whether to use the last frame for the preview image (defaults to the first frame).
| ||||||||||
ImageDecodeOptionsBuilder |
setBitmapConfig(Bitmap.Config bitmapConfig)
Sets which config static image will be decode with;
| ||||||||||
ImageDecodeOptionsBuilder |
setCustomImageDecoder(ImageDecoder customImageDecoder)
Set a custom image decoder override to be used for the given image.
| ||||||||||
ImageDecodeOptionsBuilder |
setDecodeAllFrames(boolean decodeAllFrames)
Sets whether to decode all the frames and store them in memory.
| ||||||||||
ImageDecodeOptionsBuilder |
setDecodePreviewFrame(boolean decodePreviewFrame)
Sets whether to decode a preview frame for animated images.
| ||||||||||
ImageDecodeOptionsBuilder |
setForceStaticImage(boolean forceStaticImage)
Sets whether to force animated image formats to be decoded as static, non-animated images.
| ||||||||||
ImageDecodeOptionsBuilder |
setFrom(ImageDecodeOptions options)
Sets the builder to be equivalent to the specified options.
| ||||||||||
ImageDecodeOptionsBuilder |
setMinDecodeIntervalMs(int intervalMs)
Sets the minimum decode interval.
| ||||||||||
ImageDecodeOptionsBuilder |
setUseLastFrameForPreview(boolean useLastFrameForPreview)
Sets whether to use the last frame for the preview image (defaults to the first frame).
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Builds the immutable ImageDecodeOptions
instance.
Gets which config image will be decode with;
Get the custom image decoder, if one has been set.
Gets whether to decode all the frames and store them in memory. This should only ever be used for animations that are known to be small (e.g. stickers). Caching dozens of large Bitmaps in memory for general GIFs or WebP's will not fit in memory.
Gets whether to decode a preview frame for animated images.
Gets whether to force animated image formats to be decoded as static, non-animated images.
Gets the minimum decode interval.
Gets whether to use the last frame for the preview image (defaults to the first frame).
Sets which config static image will be decode with;
bitmapConfig | which config static image will be decode with; |
---|
Set a custom image decoder override to be used for the given image. This will bypass all default decoders and only use the provided custom image decoder for the given image.
customImageDecoder | the custom decoder to use |
---|
Sets whether to decode all the frames and store them in memory. This should only ever be used for animations that are known to be small (e.g. stickers). Caching dozens of large Bitmaps in memory for general GIFs or WebP's will not fit in memory.
decodeAllFrames | whether to decode all the frames and store them in memory |
---|
Sets whether to decode a preview frame for animated images.
decodePreviewFrame | whether to decode a preview frame |
---|
Sets whether to force animated image formats to be decoded as static, non-animated images.
forceStaticImage | whether to force the image to be decoded as a static image |
---|
Sets the builder to be equivalent to the specified options.
options | the options to copy from |
---|
Sets the minimum decode interval.
Decoding of intermediate results won't happen more often that intervalMs. If another intermediate result comes too soon, it will be decoded only after intervalMs since the last decode. If there were more intermediate results in between, only the last one gets decoded.intervalMs | the minimum decode interval in milliseconds |
---|
Sets whether to use the last frame for the preview image (defaults to the first frame).
useLastFrameForPreview | whether to use the last frame for the preview image |
---|