public class

CloseableAnimatedImage

extends CloseableImage
java.lang.Object
   ↳ com.facebook.imagepipeline.image.CloseableImage
     ↳ com.facebook.imagepipeline.image.CloseableAnimatedImage

Class Overview

Encapsulates the data needed in order for AnimatedDrawable to render a AnimatedImage.

Summary

Public Constructors
CloseableAnimatedImage(AnimatedImageResult imageResult)
CloseableAnimatedImage(AnimatedImageResult imageResult, boolean isStateful)
Public Methods
void close()
Closes this instance and releases the resources.
synchronized int getHeight()
synchronized AnimatedImage getImage()
synchronized AnimatedImageResult getImageResult()
synchronized int getSizeInBytes()
synchronized int getWidth()
synchronized boolean isClosed()
Returns whether this instance is closed.
boolean isStateful()
Whether or not this image contains state for a particular view of the image (for example, the image for an animated GIF might contain the current frame being viewed).
[Expand]
Inherited Methods
From class com.facebook.imagepipeline.image.CloseableImage
From class java.lang.Object
From interface com.facebook.imagepipeline.image.HasImageMetadata
From interface com.facebook.imagepipeline.image.ImageInfo
From interface java.io.Closeable
From interface java.lang.AutoCloseable

Public Constructors

public CloseableAnimatedImage (AnimatedImageResult imageResult)

public CloseableAnimatedImage (AnimatedImageResult imageResult, boolean isStateful)

Public Methods

public void close ()

Closes this instance and releases the resources.

public synchronized int getHeight ()

public synchronized AnimatedImage getImage ()

public synchronized AnimatedImageResult getImageResult ()

public synchronized int getSizeInBytes ()

Returns
  • size in bytes of the bitmap(s)

public synchronized int getWidth ()

public synchronized boolean isClosed ()

Returns whether this instance is closed.

public boolean isStateful ()

Whether or not this image contains state for a particular view of the image (for example, the image for an animated GIF might contain the current frame being viewed). This means that the image should not be stored in the bitmap cache.