LottieCompositionSpec

interface LottieCompositionSpec

Specification for a com.airbnb.lottie.LottieComposition. Each subclass represents a different source. A com.airbnb.lottie.LottieComposition is the stateless parsed version of a Lottie json file and is passed into rememberLottieComposition or LottieAnimation.

Types

Asset
Link copied to clipboard
inline class Asset(assetName: String) : LottieCompositionSpec
Load an animation from the assets directory of your app.
File
Link copied to clipboard
inline class File(fileName: String) : LottieCompositionSpec
Load an animation from an arbitrary file.
JsonString
Link copied to clipboard
inline class JsonString(jsonString: String) : LottieCompositionSpec
Load an animation from its json string.
RawRes
Link copied to clipboard
inline class RawRes(@RawRes() resId: Int) : LottieCompositionSpec
Load an animation from res/raw.
Url
Link copied to clipboard
inline class Url(url: String) : LottieCompositionSpec
Load an animation from the internet.

Inheritors

LottieCompositionSpec
Link copied to clipboard
LottieCompositionSpec
Link copied to clipboard
LottieCompositionSpec
Link copied to clipboard
LottieCompositionSpec
Link copied to clipboard
LottieCompositionSpec
Link copied to clipboard