TimelinePlayerController

@MainThread
class TimelinePlayerController : Closeable

A controller that manages timeline playback.

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

Returns whether the timeline has completed.

Link copied to clipboard
fun isPaused(): Boolean

Returns whether the timeline is paused.

Link copied to clipboard
fun isPlaying(): Boolean

Returns whether the timeline is playing.

Link copied to clipboard
fun isStopped(): Boolean

Returns whether 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.