blob: c6274a39cb9573b321d340b86b863c8056aee73a [file] [log] [blame]
package com.airbnb.lottie;
import androidx.annotation.NonNull;
/**
* Class for initializing the library with custom config
*/
public class Lottie {
private Lottie() {
}
/**
* Initialize Lottie with global configuration.
*
* @see LottieConfig.Builder
*/
public static void initialize(@NonNull final LottieConfig lottieConfig) {
L.setFetcher(lottieConfig.networkFetcher);
L.setCacheProvider(lottieConfig.cacheProvider);
L.setTraceEnabled(lottieConfig.enableSystraceMarkers);
L.setNetworkCacheEnabled(lottieConfig.enableNetworkCache);
L.setDisablePathInterpolatorCache(lottieConfig.disablePathInterpolatorCache);
L.setDefaultAsyncUpdates(lottieConfig.defaultAsyncUpdates);
}
}