Credit

sealed interface Credit : TimeRange, Parcelable

Represents an opening or a closing credit.

Inheritors

Types

Link copied to clipboard
data class Closing(val start: Long, val end: Long) : Credit

Represents the closing credits of a media.

Link copied to clipboard
data class Opening(val start: Long, val end: Long) : Credit

Represents the opening credits of a media.

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.

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