TimeRange

sealed interface TimeRange

Represents a time range within a media playback timeline.

Inheritors

Properties

Link copied to clipboard
open val duration: Long

The duration of the time range, 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

Checks if the provided position, in milliseconds, is within this TimeRange.