Package com.airbnb.lottie.model
Class LottieCompositionCache
- java.lang.Object
-
- com.airbnb.lottie.model.LottieCompositionCache
-
public class LottieCompositionCache extends Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()LottieCompositionget(String cacheKey)static LottieCompositionCachegetInstance()voidput(String cacheKey, LottieComposition composition)voidresize(int size)Set the maximum number of compositions to keep cached in memory.
-
-
-
Method Detail
-
getInstance
public static LottieCompositionCache getInstance()
-
get
@Nullable public LottieComposition get(@Nullable String cacheKey)
-
put
public void put(@Nullable String cacheKey, LottieComposition composition)
-
clear
public void clear()
-
resize
public void resize(int size)
Set the maximum number of compositions to keep cached in memory. This must be > 0.
-
-