TimeRange

sealed interface TimeRange

Time range

Inheritors

Properties

Link copied to clipboard
open val duration: Long

Duration, in milliseconds.

Link copied to clipboard
abstract val end: Long

The end position, in milliseconds, in the player timeline.

Link copied to clipboard
abstract val start: Long

The start position, in milliseconds, in the player timeline.

Functions

Link copied to clipboard
open operator fun contains(positionMs: Long): Boolean

Check if the provided position is in this TimeRange.