-
public final class AnimateLottieCompositionAsStateKt
-
-
Method Summary
Modifier and Type Method Description final static LottieAnimationStateanimateLottieCompositionAsState(LottieComposition composition, Boolean isPlaying, Boolean restartOnPlay, Boolean reverseOnRepeat, LottieClipSpec clipSpec, Float speed, Integer iterations, LottieCancellationBehavior cancellationBehavior, Boolean ignoreSystemAnimatorScale, Boolean useCompositionFrameRate)Returns a LottieAnimationState representing the progress of an animation. -
-
Method Detail
-
animateLottieCompositionAsState
@Composable() final static LottieAnimationState animateLottieCompositionAsState(LottieComposition composition, Boolean isPlaying, Boolean restartOnPlay, Boolean reverseOnRepeat, LottieClipSpec clipSpec, Float speed, Integer iterations, LottieCancellationBehavior cancellationBehavior, Boolean ignoreSystemAnimatorScale, Boolean useCompositionFrameRate)
Returns a LottieAnimationState representing the progress of an animation.
This is the declarative version of rememberLottieAnimatable and LottieAnimation.
- Parameters:
composition- The composition to render.isPlaying- Whether or not the animation is currently playing.restartOnPlay- If isPlaying switches from false to true, restartOnPlay determines whether the progress and iteration gets reset.reverseOnRepeat- Defines what this animation should do when it reaches the end.clipSpec- A LottieClipSpec that specifies the bound the animation playback should be clipped to.speed- The speed the animation should play at.iterations- The number of times the animation should repeat before stopping.cancellationBehavior- The behavior that this animation should have when cancelled.ignoreSystemAnimatorScale- By default, Lottie will respect the system animator scale set in developer options or set to 0 by things like battery saver mode.
-
-
-
-