Chapter

data class Chapter(val id: String, val start: Long, val end: Long, val mediaMetadata: MediaMetadata) : TimeRange, Parcelable

Chapter

Constructors

Link copied to clipboard
constructor(id: String, start: Long, end: Long, mediaMetadata: MediaMetadata)

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

The id of the chapter.

Link copied to clipboard
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)