invoke

abstract operator fun <T> invoke(animation: AnimationPlan<T>, onChanged: (T) -> Unit): Animation<T>(source)

Starts the given animation and notifies of changes to the underlying value via onChanged.

Return

a job referencing the ongoing animation

Parameters

animation

to start

onChanged

is called every time the value within animation changes


abstract operator fun invoke(definitions: Animator.AnimationBlock.() -> Unit): Animation<Any>(source)

Allows block-style animations to be defined and started.

Parameters

definitions

of which animations to start

See also