play

fun play(positionInput: Double? = null)

Begins playing the animation.

If you want to start playing the animation from a specific position, pass a value from 0 to 1 to the play() method where 0 is the beginning of the animation and 1 is the end. For example, use play(0.5) to start playback halfway through the animation.

Parameters

positionInput

An optional position to seek to before toggling play/stop. If null, toggles playback from the current position.


open override fun play(positionInput: Double?, startImmediately: Boolean)

Begins playing the animation. If the animation is currently paused, it will restart playback from the beginning.

Parameters

position
  • The position to start the animation at, as a value between 0 and 1, where 0 is the beginning of the animation and 1 is the end. Defaults to 0.