Package com.airbnb.lottie.compose

Types

LottieAnimationSpec
Link copied to clipboard
sealed class LottieAnimationSpec
Specification for a Lottie animation.
LottieAnimationState
Link copied to clipboard
class LottieAnimationState(isPlaying: Boolean, repeatCount: Int, initialProgress: Float, enableMergePaths: Boolean, imageAssetsFolder: String?, imageAssetDelegate: ImageAssetDelegate?)
State of the LottieAnimation composable
LottieCompositionResult
Link copied to clipboard
sealed class LottieCompositionResult

Functions

LottieAnimation
Link copied to clipboard
@Composable()
fun LottieAnimation(composition: LottieComposition?, state: LottieAnimationState, modifier: Modifier = Modifier)
@Composable()
fun LottieAnimation(spec: LottieAnimationSpec, modifier: Modifier = Modifier, animationState: LottieAnimationState = rememberLottieAnimationState(autoPlay = true))
@Composable()
fun LottieAnimation(compositionResult: LottieCompositionResult, modifier: Modifier = Modifier, animationState: LottieAnimationState = rememberLottieAnimationState(autoPlay = true))
rememberLottieAnimationState
Link copied to clipboard
@Composable()
fun rememberLottieAnimationState(autoPlay: Boolean = true, repeatCount: Int = 0, initialProgress: Float = 0f, enableMergePaths: Boolean = true, imageAssetsFolder: String? = null, imageAssetDelegate: ImageAssetDelegate? = null): LottieAnimationState
Create a LottieAnimationState and remember it
rememberLottieComposition
Link copied to clipboard
@Composable()
fun rememberLottieComposition(spec: LottieAnimationSpec): LottieCompositionResult
TODO: add error handling