-
- All Implemented Interfaces:
-
com.airbnb.lottie.compose.LottieCompositionSpec
public final class LottieCompositionSpec.Url implements LottieCompositionSpec
Load an animation from the internet. Lottie has a default network stack that will use standard Android networking APIs to attempt to load your animation. You may want to integrate your own networking stack instead for consistency, to add your own headers, or implement retries. To do that, call com.airbnb.lottie.Lottie.initialize and set a com.airbnb.lottie.network.LottieNetworkFetcher on the com.airbnb.lottie.LottieConfig.
If you are using this spec, you may want to use rememberLottieComposition instead of passing this spec directly into LottieAnimation because it can fail and you want to make sure that you properly handle the failures and/or retries.
-
-
Constructor Summary
Constructors Constructor Description LottieCompositionSpec.Url(String url)
-