Class LottieConfig.Builder

  • Enclosing class:
    LottieConfig

    public static final class LottieConfig.Builder
    extends java.lang.Object
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • setNetworkFetcher

        @NonNull
        public LottieConfig.Builder setNetworkFetcher​(@NonNull
                                                      LottieNetworkFetcher fetcher)
        Lottie has a default network fetching stack built on HttpURLConnection. However, if you would like to hook into your own network stack for performance, caching, or analytics, you may replace the internal stack with your own.
      • setNetworkCacheProvider

        @NonNull
        public LottieConfig.Builder setNetworkCacheProvider​(@NonNull
                                                            LottieNetworkCacheProvider fileCacheProvider)
        Provide your own network cache provider. By default, animations will be saved in your application's cacheDir/lottie_network_cache.
      • setEnableSystraceMarkers

        @NonNull
        public LottieConfig.Builder setEnableSystraceMarkers​(boolean enable)
        Enable this if you want to run systrace to debug the performance of animations.

        DO NOT leave this enabled in production. The overhead is low but non-zero.

        See Also:
        Systrace Docs