Package 

Class LottieCompositionSpec.Asset

  • All Implemented Interfaces:
    com.airbnb.lottie.compose.LottieCompositionSpec

    
    public final class LottieCompositionSpec.Asset
     implements LottieCompositionSpec
                        

    Load an animation from the assets directory of your app. This isn't type safe like RawRes so make sure that the path to your animation is correct this will fail.

    • Field Summary

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

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

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

      • LottieCompositionSpec.Asset

        LottieCompositionSpec.Asset(String assetName)