sealed interface RemoteAnimationSpec

Known direct subclasses
RemoteTweenSpec

Easing-based animation specification with a fixed duration.


Specification for animations in Remote Compose.

Summary

Public functions

RemoteFloat
animate(targetValue: RemoteFloat, initialValue: Float, wrap: Float)

Creates an animated RemoteFloat based on the provided targetValue and animation parameters.

Public functions

animate

Added in 1.0.0-alpha21
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: RemoteFloat

The target value to animate towards.

initialValue: Float = Float.NaN

Optional initial value if animating from a start value, or Float.NaN.

wrap: Float = Float.NaN

Optional wrap modulo bound (e.g. 360f for angles), or Float.NaN.

Returns
RemoteFloat

An animated RemoteFloat.