BlockedTimeRange

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

Blocked time range. The player will always seek to end when reaching start, regardless of the reason or id.

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

Duration, in milliseconds.

Link copied to clipboard
open override val end: Long

The end position, in milliseconds.

Link copied to clipboard
val id: String? = null

The optional id.

Link copied to clipboard
val reason: String? = null

The optional block reason.

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

Check if the provided position is in this TimeRange.

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