-
public final class LottieDynamicPropertiesKt
-
-
Method Summary
Modifier and Type Method Description final static LottieDynamicPropertiesrememberLottieDynamicProperties(LottieDynamicProperty<?> properties)Use this function when you want to apply one or more dynamic properties to an animation. final static <T extends Any> LottieDynamicProperty<T>rememberLottieDynamicProperty(T property, T value, String keyPath)Use this to create a single dynamic property for an animation. final static <T extends Any> LottieDynamicProperty<T>rememberLottieDynamicProperty(T property, String keyPath, Function1<LottieFrameInfo<T>, T> callback)Use this to create a single dynamic property for an animation. -
-
Method Detail
-
rememberLottieDynamicProperties
@Composable() final static LottieDynamicProperties rememberLottieDynamicProperties(LottieDynamicProperty<?> properties)
Use this function when you want to apply one or more dynamic properties to an animation. This takes a vararg of individual dynamic properties which should be created with rememberLottieDynamicProperty.
-
rememberLottieDynamicProperty
@Composable() final static <T extends Any> LottieDynamicProperty<T> rememberLottieDynamicProperty(T property, T value, String keyPath)
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.
-
rememberLottieDynamicProperty
@Composable() final static <T extends Any> LottieDynamicProperty<T> rememberLottieDynamicProperty(T property, String keyPath, Function1<LottieFrameInfo<T>, T> callback)
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.
-
-
-
-