Source set: Android
public sealed interface RemoteAnimationSpec
Specification for animations in Remote Compose.
Functions
animate
Source set: Android
public fun animate(
targetValue: RemoteFloat,
initialValue: Float = Float.NaN,
wrap: Float = Float.NaN,
): RemoteFloat
Creates an animated RemoteFloat based on the provided targetValue and animation parameters.
Parameters
| targetValue | The target value to animate towards. |
| initialValue | Optional initial value if animating from a start value, or Float.NaN. |
| wrap | Optional wrap modulo bound (e.g. 360f for angles), or Float.NaN. |
Return
An animated RemoteFloat.