Class LottieCompositionCache


  • public class LottieCompositionCache
    extends java.lang.Object
    • Method Detail

      • 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.