ValueHolderImpl

data class ValueHolderImpl<T> : ValueHolder<T>
kotlin.Any
   ↳ androidx.animation.ValueHolderImpl

ValueHolderImpl is a data class that defines two fields: value (of type T) and a value interpolator.

Summary

Public constructors

<init>(value: T, interpolator: (T, T, Float) -> T)

ValueHolderImpl is a data class that defines two fields: value (of type T) and a value interpolator.

Properties

(T, T, Float) -> T

Value interpolator defines how two values of type T should be interpolated.

T

This value field gets updated during animation

Public constructors

<init>

ValueHolderImpl(
    value: T,
    interpolator: (T, T, Float) -> T)

ValueHolderImpl is a data class that defines two fields: value (of type T) and a value interpolator.

Parameters
value: T This value field gets updated during animation
interpolator: (T, T, Float) -> T Value interpolator defines how two values of type T should be interpolated.

Properties

interpolator

val interpolator: (T, T, Float) -> T

Value interpolator defines how two values of type T should be interpolated.

value

var value: T

This value field gets updated during animation