invoke
open operator override 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
open operator override 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