java.lang.Object | |
↳ | com.facebook.imagepipeline.animated.base.AnimatedImageResultBuilder |
Builder for AnimatedImageResult
.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
AnimatedImageResult |
build()
Builds the
AnimatedImageResult . | ||||||||||
BitmapTransformation |
getBitmapTransformation()
Gets the transformation that is to be applied to the image, or null if none.
| ||||||||||
List<CloseableReference<Bitmap>> |
getDecodedFrames()
Gets the decoded frames.
| ||||||||||
int |
getFrameForPreview()
Gets the frame that should be used for the preview image.
| ||||||||||
AnimatedImage |
getImage()
Gets the image for the result.
| ||||||||||
CloseableReference<Bitmap> |
getPreviewBitmap()
Gets the preview bitmap.
| ||||||||||
AnimatedImageResultBuilder |
setBitmapTransformation(BitmapTransformation bitmapTransformation)
Sets the transformation that is to be applied to the image.
| ||||||||||
AnimatedImageResultBuilder |
setDecodedFrames(List<CloseableReference<Bitmap>> decodedFrames)
Sets the decoded frames.
| ||||||||||
AnimatedImageResultBuilder |
setFrameForPreview(int frameForPreview)
Sets the frame that should be used for the preview image.
| ||||||||||
AnimatedImageResultBuilder |
setPreviewBitmap(CloseableReference<Bitmap> previewBitmap)
Sets a preview bitmap.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Builds the AnimatedImageResult
. The preview bitmap and the decoded frames are closed
after build is called, so this should not be called more than once or those fields will be lost
after the first call.
Gets the transformation that is to be applied to the image, or null if none.
Gets the decoded frames. Only used if the ImageDecodeOptions
were configured to decode
all frames at decode time.
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 preview bitmap. This method returns a new reference. The caller must close it.
Sets the transformation that is to be applied to the image.
bitmapTransformation | the transformation that is to be applied to the image |
---|
Sets the decoded frames. Only used if the ImageDecodeOptions
were configured to decode
all frames at decode time.
decodedFrames | the decoded frames. The method clones the references. |
---|
Sets the frame that should be used for the preview image. If the preview bitmap was fetched, this is the frame that it's for.
Sets a preview bitmap.
previewBitmap | the preview. The method clones the reference. |
---|