animateRemoteDpAsState
Source set: Android
public fun animateRemoteDpAsState(
targetValue: RemoteDp,
animationSpec: RemoteAnimationSpec = remoteTween(),
initialValue: Float = Float.NaN,
): RemoteDp
Returns a RemoteDp 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. |