BlockedTimeRange

data class BlockedTimeRange(val start: Long, val end: Long, val reason: String? = null, val id: String? = null) : TimeRange, Parcelable

Represents a time range that is blocked for playback. When the player reaches the start time of a blocked range, it will immediately seek to the end time, effectively skipping the blocked portion. This behavior is enforced regardless of the reason or id associated with the block.

Constructors

Link copied to clipboard
constructor(start: Long, end: Long, reason: String? = null, id: String? = null)

Properties

Link copied to clipboard
open val duration: Long

The duration of the time range, in milliseconds.

Link copied to clipboard
open override val end: Long

The end position, in milliseconds.

Link copied to clipboard
val id: String?

An optional unique identifier for the block.

Link copied to clipboard

An optional string describing the reason for the block.

Link copied to clipboard
open override val start: Long

The start position, in milliseconds.

Functions

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

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

Link copied to clipboard
abstract fun describeContents(): Int
Link copied to clipboard
abstract fun writeToParcel(p0: Parcel, p1: Int)