animateRemoteFloatAsState
Source set: Android
public fun animateRemoteFloatAsState(
targetValue: RemoteFloat,
animationSpec: RemoteAnimationSpec = remoteTween(),
initialValue: Float = Float.NaN,
wrap: Float = Float.NaN,
): RemoteFloat
Returns a RemoteFloat that animates towards targetValue whenever it changes.
Parameters
| targetValue | The target value to animate towards. |
| animationSpec | The specification for the animation (e.g. remoteTween or remoteSpring). |
| initialValue | Optional initial value if animating from a start value. |
| wrap | Optional wrap modulo bound (e.g. 360f for angles). |