Class

RemoteEasing

Defines the easing curve used for Remote Compose animations.

Source set: Android
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

Source set: Android
override fun equals(other: Any?): Boolean

hashCode

Source set: Android
override fun hashCode(): Int

toString

Source set: Android
override fun toString(): String

Members

Companion

Source set: Android
public companion object

Properties

Standard

Source set: Android
public val Standard: RemoteEasing = RemoteEasing(CUBIC_STANDARD)

Standard cubic bezier easing curve.

Linear

Source set: Android
public val Linear: RemoteEasing = RemoteEasing(CUBIC_LINEAR)

Linear easing curve with a constant rate of change.

Accelerate

Source set: Android
public val Accelerate: RemoteEasing = RemoteEasing(CUBIC_ACCELERATE)

Easing curve that starts slowly and accelerates toward the end.

Decelerate

Source set: Android
public val Decelerate: RemoteEasing = RemoteEasing(CUBIC_DECELERATE)

Easing curve that starts quickly and decelerates toward the end.

Anticipate

Source set: Android
public val Anticipate: RemoteEasing = RemoteEasing(CUBIC_ANTICIPATE)

Easing curve that pulls back slightly before moving forward.

Overshoot

Source set: Android
public val Overshoot: RemoteEasing = RemoteEasing(CUBIC_OVERSHOOT)

Easing curve that overshoots the target before settling.

Bounce

Source set: Android
public val Bounce: RemoteEasing = RemoteEasing(EASE_OUT_BOUNCE)

Easing curve that bounces at the end of the transition.

Elastic

Source set: Android
public val Elastic: RemoteEasing = RemoteEasing(EASE_OUT_ELASTIC)

Easing curve that oscillates elastically at the end of the transition.

Functions

Cubic

Source set: Android
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

Source set: Android
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.

Content updated: