AbstractMutableAnimatedValue

abstract class AbstractMutableAnimatedValue<Value, Vector : AnimationVector>(converter: TwoWayConverter<Value, Vector>, zeroVelocity: Value, initialValue: Value, label: String = "AnimatedValue") : MutableAnimatedValue<Value>

Exists to mitigate Animatable's limitations regarding animating and snapping. The mitigations are based on manual management of publicly exposed state.

Inheritors

Constructors

Link copied to clipboard
constructor(converter: TwoWayConverter<Value, Vector>, zeroVelocity: Value, initialValue: Value, label: String = "AnimatedValue")

Properties

Link copied to clipboard
open override var value: Value
Link copied to clipboard
open override val velocity: Value

Functions

Link copied to clipboard
open suspend override fun animateTo(target: Value, spec: AnimationSpec<Value> = spring(), initialVelocity: Value = velocity, stopOnTargetReached: Boolean = false)