docs/javadoc/reference/com/facebook/imagepipeline/animated/impl/AnimatedFrameCache.html
|
|
Summary: Ctors | Methods | Inherited Methods | [Expand All]
public class
extends Object
| java.lang.Object | | ↳ | com.facebook.imagepipeline.animated.impl.AnimatedFrameCache |
Facade to the image memory cache for frames of an animated image.
Each animated image should have its own instance of this class.
| Public Constructors |
|---|
| Public Methods |
|---|
| CloseableReference<CloseableImage> |
| Caches the image for the given frame index. |
| boolean |
| Check whether the cache contains an image for the given frame index. |
| CloseableReference<CloseableImage> |
| Gets the image for the given frame index. |
| CloseableReference<CloseableImage> |
| Gets the image to be reused, or null if there is no such image. |
| synchronized void |
| [Expand] Inherited Methods | | --- | | From class java.lang.Object
| Object | clone() | | boolean | equals(Object arg0) | | void | finalize() | | final Class<?> | getClass() | | int | hashCode() | | final void | notify() | | final void | notifyAll() | | String | toString() | | final void | wait(long arg0, int arg1) | | final void | wait(long arg0) | | final void | wait() |
|
Caches the image for the given frame index.
Important: the client should use the returned reference instead of the original one. It is the caller's responsibility to close the returned reference once not needed anymore.
Check whether the cache contains an image for the given frame index.
Gets the image for the given frame index.
It is the caller's responsibility to close the returned reference once not needed anymore.
Gets the image to be reused, or null if there is no such image.
The returned image is the least recently used image that has no more clients referencing it, and it has not yet been evicted from the cache.
The client can freely modify the bitmap of the returned image and can cache it again without any restrictions.
+Generated by Doclava. +