Package 

Class FrescoFrameCache

  • All Implemented Interfaces:
    com.facebook.fresco.animation.bitmap.BitmapFrameCache

    
    public class FrescoFrameCache
     implements BitmapFrameCache
                        

    Bitmap frame cache that uses Fresco's AnimatedFrameCache to cache frames.

    • Method Summary

      Modifier and Type Method Description
      synchronized CloseableReference<Bitmap> getCachedFrame(int frameNumber)
      synchronized CloseableReference<Bitmap> getFallbackFrame(int frameNumber)
      synchronized CloseableReference<Bitmap> getBitmapToReuseForFrame(int frameNumber, int width, int height)
      synchronized boolean contains(int frameNumber)
      synchronized int getSizeInBytes()
      synchronized void clear()
      synchronized void onFrameRendered(int frameNumber, CloseableReference<Bitmap> bitmapReference, int frameType)
      synchronized void onFramePrepared(int frameNumber, CloseableReference<Bitmap> bitmapReference, int frameType)
      void setFrameCacheListener(@Nullable() BitmapFrameCache.FrameCacheListener frameCacheListener)
      boolean onAnimationPrepared(Map<Integer, out CloseableReference<Bitmap>> frameBitmaps)
      boolean isAnimationReady()
      • Methods inherited from class com.facebook.fresco.animation.bitmap.BitmapFrameCache

        clear, contains, getBitmapToReuseForFrame, getCachedFrame, getFallbackFrame, getSizeInBytes, isAnimationReady, onAnimationPrepared, onFramePrepared, onFrameRendered, setFrameCacheListener
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait