public class RemoteEasing internal constructor(internal val type: Int, internal val spec: FloatArray? = null)
Defines the easing curve used for Remote Compose animations.
Functions
equals
override fun equals(other: Any?): Boolean
hashCode
override fun hashCode(): Int
toString
override fun toString(): String
Members
Companion
public companion object
Properties
Standard
public val Standard: RemoteEasing = RemoteEasing(CUBIC_STANDARD)
Standard cubic bezier easing curve.
Linear
public val Linear: RemoteEasing = RemoteEasing(CUBIC_LINEAR)
Linear easing curve with a constant rate of change.
Accelerate
public val Accelerate: RemoteEasing = RemoteEasing(CUBIC_ACCELERATE)
Easing curve that starts slowly and accelerates toward the end.
Decelerate
public val Decelerate: RemoteEasing = RemoteEasing(CUBIC_DECELERATE)
Easing curve that starts quickly and decelerates toward the end.
Anticipate
public val Anticipate: RemoteEasing = RemoteEasing(CUBIC_ANTICIPATE)
Easing curve that pulls back slightly before moving forward.
Overshoot
public val Overshoot: RemoteEasing = RemoteEasing(CUBIC_OVERSHOOT)
Easing curve that overshoots the target before settling.
Bounce
public val Bounce: RemoteEasing = RemoteEasing(EASE_OUT_BOUNCE)
Easing curve that bounces at the end of the transition.
Elastic
public val Elastic: RemoteEasing = RemoteEasing(EASE_OUT_ELASTIC)
Easing curve that oscillates elastically at the end of the transition.
Functions
Cubic
public fun Cubic(x1: Float, y1: Float, x2: Float, y2: Float): RemoteEasing
Creates a custom cubic bezier RemoteEasing curve from the control points (x1, y1) and (x2, y2).
Parameters
| x1 | The x-coordinate of the first control point. |
| y1 | The y-coordinate of the first control point. |
| x2 | The x-coordinate of the second control point. |
| y2 | The y-coordinate of the second control point. |
Spline
public fun Spline(points: FloatArray): RemoteEasing
Creates a custom spline RemoteEasing curve that interpolates through points.
Parameters
| points | The control points defining the spline curve. |