-
- All Implemented Interfaces:
-
com.facebook.common.references.HasBitmap,com.facebook.fresco.middleware.HasExtraData,com.facebook.imagepipeline.image.CloseableImage,com.facebook.imagepipeline.image.HasImageMetadata,com.facebook.imagepipeline.image.ImageInfo,java.io.Closeable,java.lang.AutoCloseable
public abstract class BaseCloseableImage implements CloseableImage
A simple wrapper around an image that implements Closeable
-
-
Method Summary
Modifier and Type Method Description QualityInfogetQualityInfo()Returns quality information for the image. booleanisStateful()Whether or not this image contains state for a particular view of the image (for example, theimage for an animated GIF might contain the current frame being viewed). Map<String, Object>getExtras()voidputExtras(@Nullable() Map<String, out Object> extras)Sets extras that match mImageExtrasList to this image from supplied extras <E> voidputExtra(String extra, @Nullable() E value)<T> TgetExtra(String key)<T> TgetExtra(String key, @Nullable() T valueIfNotFound)ImageInfogetImageInfo()-
Methods inherited from class com.facebook.imagepipeline.image.CloseableImage
close, getHeight, getSizeInBytes, getWidth, isClosed -
Methods inherited from class java.io.Closeable
close -
Methods inherited from class com.facebook.fresco.middleware.HasExtraData
getExtra, getExtras, putExtra, putExtras -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getQualityInfo
QualityInfo getQualityInfo()
Returns quality information for the image.
Image classes that can contain intermediate results should override this as appropriate.
-
isStateful
boolean isStateful()
Whether or not this image contains state for a particular view of the image (for example, theimage for an animated GIF might contain the current frame being viewed). This means that theimage should not be stored in the bitmap cache.
-
putExtras
void putExtras(@Nullable() Map<String, out Object> extras)
Sets extras that match mImageExtrasList to this image from supplied extras
-
getImageInfo
ImageInfo getImageInfo()
-
-
-
-