public class

FixedNumberBitmapFramePreparationStrategy

extends Object
implements BitmapFramePreparationStrategy
java.lang.Object
   ↳ com.facebook.fresco.animation.bitmap.preparation.FixedNumberBitmapFramePreparationStrategy

Class Overview

Frame preparation strategy to prepare the next n frames

Summary

Public Constructors
FixedNumberBitmapFramePreparationStrategy()
FixedNumberBitmapFramePreparationStrategy(int framesToPrepare)
Public Methods
void prepareFrames(BitmapFramePreparer bitmapFramePreparer, BitmapFrameCache bitmapFrameCache, AnimationBackend animationBackend, int lastDrawnFrameNumber)
Decide whether frames should be prepared ahead of time when a frame is drawn.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.facebook.fresco.animation.bitmap.preparation.BitmapFramePreparationStrategy

Public Constructors

public FixedNumberBitmapFramePreparationStrategy ()

public FixedNumberBitmapFramePreparationStrategy (int framesToPrepare)

Public Methods

public void prepareFrames (BitmapFramePreparer bitmapFramePreparer, BitmapFrameCache bitmapFrameCache, AnimationBackend animationBackend, int lastDrawnFrameNumber)

Decide whether frames should be prepared ahead of time when a frame is drawn.

Parameters
bitmapFramePreparer the preparer to be used to create frames
bitmapFrameCache the cache to pass to the preparer
animationBackend the animation backend to prepare frames for
lastDrawnFrameNumber the last drawn frame number