public static final class LottieConfig.Builder
extends java.lang.Object
| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
LottieConfig |
build() |
LottieConfig.Builder |
setEnableSystraceMarkers(boolean enable)
Enable this if you want to run systrace to debug the performance of animations.
|
LottieConfig.Builder |
setNetworkCacheDir(java.io.File file)
Provide your own network cache directory.
|
LottieConfig.Builder |
setNetworkCacheProvider(LottieNetworkCacheProvider fileCacheProvider)
Provide your own network cache provider.
|
LottieConfig.Builder |
setNetworkFetcher(LottieNetworkFetcher fetcher)
Lottie has a default network fetching stack built on
HttpURLConnection. |
public LottieConfig.Builder setNetworkFetcher(LottieNetworkFetcher fetcher)
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.public LottieConfig.Builder setNetworkCacheDir(java.io.File file)
public LottieConfig.Builder setNetworkCacheProvider(LottieNetworkCacheProvider fileCacheProvider)
public LottieConfig.Builder setEnableSystraceMarkers(boolean enable)
public LottieConfig build()