invoke

operator fun <T, V> Animator.invoke(range: Pair<T, T>, using: NumericAnimationPlan<T, V>, onChanged: (T) -> Unit): Animation<T>(source)

Starts an animation from range.first to range.second.

Parameters

range

to animate within

using

this animation

onChanged

notified of changes to the animating value


operator fun <V, T, K> Animator.invoke(default: T, using: NumericAnimationPlan<T, K>, onChanged: (old: T, new: T) -> Unit = { _,_ -> }): ReadWriteProperty<V, T>(source)

Defines a property that can be animated using the given animation.

Parameters

default

value to initialize the property with

using

the given animation

onChanged

that notifies when the underlying property changes