remoteSpring
Source set: Android
public fun remoteSpring(
@FloatRange(from = 0.0, to = 1.0) dampingRatio: Float = 1f,
@FloatRange(from = 0.0, fromInclusive = false) stiffness: Float = 50f,
@FloatRange(from = 0.0, fromInclusive = false) stopThreshold: Float = 0.001f,
boundaryMode: Int = 0,
): RemoteAnimationSpec
Creates a RemoteAnimationSpec for physics-based spring animations.
Parameters
| dampingRatio | Damping ratio (1.0 = no bounce, < 1.0 = bouncy). |
| stiffness | Spring stiffness. |
| stopThreshold | Threshold for stopping velocity/displacement. |
| boundaryMode | Boundary mode for the spring. |