Package com.airbnb.lottie.model
Class LottieCompositionCache
- java.lang.Object
-
- com.airbnb.lottie.model.LottieCompositionCache
-
public class LottieCompositionCache extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()LottieCompositionget(java.lang.String cacheKey)static LottieCompositionCachegetInstance()voidput(java.lang.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 java.lang.String cacheKey)
-
put
public void put(@Nullable java.lang.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.
-
-