start Value Animator
fun startValueAnimator(from: Float, to: Float, durationMillis: Long = 300, startDelayMillis: Long = 0, interpolator: TimeInterpolator? = null, onUpdate: (Float) -> Unit, onEnd: () -> Unit? = null): ValueAnimator(source)
Creates and immediately starts a float ValueAnimator.
Updates and completion are delivered on the thread that owns the animator, normally the main thread. The caller must cancel the returned animator when its lifecycle ends.
Return
the already-started platform animator
Parameters
from
initial animated value
to
final animated value
duration Millis
animation duration in milliseconds
start Delay Millis
delay before the animation starts
interpolator
optional platform timing interpolator
on Update
callback for every platform animation update
on End
optional callback invoked when the animator ends