LottieAnimationState

class LottieAnimationState(isPlaying: Boolean, repeatCount: Int, initialProgress: Float, enableMergePaths: Boolean, imageAssetsFolder: String?, imageAssetDelegate: ImageAssetDelegate?)

State of the LottieAnimation composable

See also

Parameters

enableMergePaths

Initial value for enableMergePaths

imageAssetDelegate
imageAssetsFolder
initialProgress

Initial value for progress

isPlaying

Initial value for isPlaying

repeatCount

Initial value for repeatCount

Constructors

LottieAnimationState
Link copied to clipboard
fun LottieAnimationState(isPlaying: Boolean, repeatCount: Int = 0, initialProgress: Float = 0f, enableMergePaths: Boolean = true, imageAssetsFolder: String? = null, imageAssetDelegate: ImageAssetDelegate? = null)
Initial value for isPlaying

Functions

equals
Link copied to clipboard
open operator fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open fun hashCode(): Int
toggleIsPlaying
Link copied to clipboard
fun toggleIsPlaying()
toString
Link copied to clipboard
open fun toString(): String

Properties

applyOpacityToLayers
Link copied to clipboard
var applyOpacityToLayers: Boolean
Sets whether to apply opacity to the each layer instead of shape.
enableMergePaths
Link copied to clipboard
var enableMergePaths: Boolean
Enable this to get merge path support.
frame
Link copied to clipboard
val frame: Int
imageAssetDelegate
Link copied to clipboard
var imageAssetDelegate: ImageAssetDelegate?
Use this if you can't bundle images with your app.
imageAssetsFolder
Link copied to clipboard
var imageAssetsFolder: String?
If you use image assets, you must explicitly specify the folder in assets/ in which they are located because bodymovin uses the name filenames across all compositions (img_#).
isPlaying
Link copied to clipboard
var isPlaying: Boolean
Whether the animation is currently playing.
outlineMasksAndMattes
Link copied to clipboard
var outlineMasksAndMattes: Boolean
Enable this to debug slow animations by outlining masks and mattes.
progress
Link copied to clipboard
var progress: Float
repeatCount
Link copied to clipboard
var repeatCount: Int
How many times the animation will be played.
speed
Link copied to clipboard
var speed: Float