AnimatedValueModel

@Stable 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>(initialValue: T, typeConverter: TwoWayConverter<T, V>, clock: AnimationClockObservable, visibilityThreshold: V? = null)

Model class for AnimatedValue.

Inherited functions

Properties

T

Current value of the animation.

Inherited properties

Public constructors

<init>

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

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
initialValue: 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

Current value of the animation.