AnimatedValue

abstract class AnimatedValue<T, V : AnimationVector> : BaseAnimatedValue<T, V>
kotlin.Any
   ↳ androidx.animation.BaseAnimatedValue<T, V>
   ↳ androidx.animation.AnimatedValue

AnimatedValue is an animatable value holder. It can hold any type of value, and automatically animate the value change when the value is changed via animateTo. AnimatedValue supports value change during an ongoing value change animation. When that happens, a new animation will transition AnimatedValue from its current value (i.e. value at the point of interruption) to the new target. This ensures that the value change is always continuous.

Summary

Public constructors

<init>(typeConverter: TwoWayConverter<T, V>, clock: AnimationClockObservable, visibilityThreshold: V? = null)

AnimatedValue is an animatable value holder.

Inherited functions

Properties

V

Inherited properties

Public constructors

<init>

AnimatedValue(
    typeConverter: TwoWayConverter<T, V>,
    clock: AnimationClockObservable,
    visibilityThreshold: V? = null)

AnimatedValue is an animatable value holder. It can hold any type of value, and automatically animate the value change when the value is changed via animateTo. AnimatedValue supports value change during an ongoing value change animation. When that happens, a new animation will transition AnimatedValue from its current value (i.e. value at the point of interruption) to the new target. This ensures that the value change is always continuous.

Properties

velocity

val velocity: V