java.lang.Object | |
↳ | com.facebook.imagepipeline.animated.base.AnimatedImageResult |
The result of decoding an animated image. Contains the AnimatedImage
as well as
additional data.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
synchronized void |
dispose()
Disposes the result, which releases the reference to any bitmaps.
| ||||||||||
static AnimatedImageResult |
forAnimatedImage(AnimatedImage image)
Creates an
AnimatedImageResult with no additional options. | ||||||||||
BitmapTransformation |
getBitmapTransformation()
Gets the transformation that is to be applied to the image, or null if none.
| ||||||||||
synchronized CloseableReference<Bitmap> |
getDecodedFrame(int index)
Gets a decoded frame.
| ||||||||||
int |
getFrameForPreview()
Gets the frame that should be used for the preview image.
| ||||||||||
AnimatedImage |
getImage()
Gets the underlying image.
| ||||||||||
synchronized CloseableReference<Bitmap> |
getPreviewBitmap()
Gets the bitmap for the preview frame.
| ||||||||||
synchronized boolean |
hasDecodedFrame(int index)
Gets whether it has the decoded frame.
| ||||||||||
static AnimatedImageResultBuilder |
newBuilder(AnimatedImage image)
Creates an
AnimatedImageResultBuilder for creating an AnimatedImageResult . |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Disposes the result, which releases the reference to any bitmaps.
Creates an AnimatedImageResult
with no additional options.
image | the image |
---|
Gets the transformation that is to be applied to the image, or null if none.
Gets a decoded frame. This will only return non-null if the ImageDecodeOptions
were
configured to decode all frames at decode time.
index | the index of the frame to get |
---|
Gets the frame that should be used for the preview image. If the preview bitmap was fetched, this is the frame that it's for.
Gets the bitmap for the preview frame. This will only return non-null if the ImageDecodeOptions
were configured to decode the preview frame.
Gets whether it has the decoded frame. This will only return true if the ImageDecodeOptions
were configured to decode all frames at decode time.
index | the index of the frame to get |
---|
Creates an AnimatedImageResultBuilder
for creating an AnimatedImageResult
.
image | the image |
---|