The Android Developer Challenge is back! Submit your idea before December 2.

ValueHolder

interface ValueHolder<T>
androidx.animation.ValueHolder

A value holder contains two fields: A mutable value that is expected to change throughout an animation, and an immutable value interpolator.

Summary

Properties

abstract (start: T, end: T, fraction: Float) -> T

Value interpolator that will be used to interpolate two values of type T.

abstract T

Value of the ValueHolder.

Properties

interpolator

abstract val interpolator: (start: T, end: T, fraction: Float) -> T

Value interpolator that will be used to interpolate two values of type T.

value

abstract var value: T

Value of the ValueHolder. This value will be updated by subclasses of BaseAnimatedValue.