Package 

Class LottieCompositionSpec.Url

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

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private final String url
    • Method Summary

      Modifier and Type Method Description
      final String getUrl()
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • LottieCompositionSpec.Url

        LottieCompositionSpec.Url(String url)