The Developer Preview for Android 11 is now available; test it out and share your feedback.

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)

AnimatedValue is an animatable value holder.

Inherited functions

Inherited extension functions

From androidx.compose
operator T

IMPORTANT: This global operator is TEMPORARY, and should be removed whenever an answer for contextual composers is reached.

Properties

V

Inherited properties

Public constructors

<init>

AnimatedValue(
    typeConverter: TwoWayConverter<T, V>,
    clock: AnimationClockObservable)

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