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

AnimatedValueModel

@Model class AnimatedValueModel<T, V : AnimationVector> : AnimatedValue<T, V>
kotlin.Any
   ↳ androidx.animation.BaseAnimatedValue<T, V>
   ↳ androidx.animation.AnimatedValue<T, V>
   ↳ androidx.ui.animation.AnimatedValueModel

Model class for AnimatedValue. This class tracks the value field change, so that composables that read from this field can get promptly recomposed as the animation updates the value.

Summary

Public constructors

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

Model class for AnimatedValue.

Inherited functions

Properties

T

The overridden value field that can only be mutated by animation

Inherited properties

Public constructors

<init>

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

Model class for AnimatedValue. This class tracks the value field change, so that composables that read from this field can get promptly recomposed as the animation updates the value.

Parameters
value: T The overridden value field that can only be mutated by animation
typeConverter: TwoWayConverter<T, V> The converter for converting any value of type T to an AnimationVector type
clock: AnimationClockObservable The animation clock that will be used to drive the animation

Properties

value

var value: T

The overridden value field that can only be mutated by animation