TimelinePlayerController

@MainThread
class TimelinePlayerController : Closeable

A controller that manages the player of a timeline.

Properties

Link copied to clipboard

The entity that the timeline player is playing on.

Link copied to clipboard
@get:JvmName(name = "isValid")
val valid: Boolean

The controller is valid.

Functions

Link copied to clipboard
open override fun close()

Closes the current controller.

Link copied to clipboard
fun getDuration(): Float

Gets the duration of the timeline.

Link copied to clipboard
fun isComplete(): Boolean

Gets if the timeline is completed.

Link copied to clipboard
fun isPaused(): Boolean

Gets if the timeline is paused.

Link copied to clipboard
fun isPlaying(): Boolean

Gets if the timeline is playing.

Link copied to clipboard
fun isStopped(): Boolean

Gets if the timeline is stopped.

Link copied to clipboard
fun pause()

Pauses the timeline.

Link copied to clipboard
fun play()

Plays the timeline.

Link copied to clipboard
fun resume()

Resumes the timeline.

Link copied to clipboard
fun stop()

Stops the timeline.