-
@RestrictTo(value = RestrictTo.Scope.LIBRARY) public class LottieCompositionCache
-
-
Method Summary
Modifier and Type Method Description static LottieCompositionCachegetInstance()LottieCompositionget(@Nullable() String cacheKey)voidput(@Nullable() String cacheKey, LottieComposition composition)voidclear()voidresize(int size)Set the maximum number of compositions to keep cached in memory. -
-
Method Detail
-
getInstance
static LottieCompositionCache getInstance()
-
get
@Nullable() LottieComposition get(@Nullable() String cacheKey)
-
put
void put(@Nullable() String cacheKey, LottieComposition composition)
-
clear
void clear()
-
resize
void resize(int size)
Set the maximum number of compositions to keep cached in memory.This must be
{@literal >}0.
-
-
-
-