rememberLottieDynamicProperty

@Composable()
fun <T> rememberLottieDynamicProperty(property: T, value: T, vararg keyPath: String): LottieDynamicProperty<T>

Use this to create a single dynamic property for an animation.

Parameters

property

should be one of com.airbnb.lottie.LottieProperty.

value

the desired value to use as this property's value.

keyPath

the string parts of a com.airbnb.lottie.model.KeyPath that specify which animation element the property resides on.

@Composable()
fun <T> rememberLottieDynamicProperty(property: T, vararg keyPath: String, callback: (frameInfo: LottieFrameInfo<T>) -> T): LottieDynamicProperty<T>

Use this to create a single dynamic property for an animation.

Parameters

property

Should be one of com.airbnb.lottie.LottieProperty.

keyPath

The string parts of a com.airbnb.lottie.model.KeyPath that specify which animation element the property resides on.

callback

A callback that will be invoked during the drawing pass with current frame info. The frame info can be used to alter the property's value based on the original animation data or it can be completely ignored and an arbitrary value can be returned. In this case, you may want the overloaded version of this function that takes a static value instead of a callback.