DefaultTrackSelector.SelectionOverride


class DefaultTrackSelector.SelectionOverride


A track selection override.

Summary

Public constructors

SelectionOverride(groupIndex: Int, tracks: IntArray!)

Constructs a SelectionOverride to override tracks of a group.

@UnstableApi
SelectionOverride(
    groupIndex: Int,
    tracks: IntArray!,
    @TrackSelection.Type type: Int
)

Constructs a SelectionOverride of the given type to override tracks of a group.

Public functions

Boolean

Returns whether this override contains the specified track index.

Boolean
equals(obj: Any?)
java-static DefaultTrackSelector.SelectionOverride!

Restores a SelectionOverride from a Bundle.

Int
Bundle!

Public constructors

SelectionOverride

SelectionOverride(groupIndex: Int, tracks: IntArray!)

Constructs a SelectionOverride to override tracks of a group.

Parameters
groupIndex: Int

The overriding track group index.

tracks: IntArray!

The overriding track indices within the track group.

SelectionOverride

@UnstableApi
SelectionOverride(
    groupIndex: Int,
    tracks: IntArray!,
    @TrackSelection.Type type: Int
)

Constructs a SelectionOverride of the given type to override tracks of a group.

Parameters
groupIndex: Int

The overriding track group index.

tracks: IntArray!

The overriding track indices within the track group.

@TrackSelection.Type type: Int

The type that will be returned from getType.

Public functions

containsTrack

fun containsTrack(track: Int): Boolean

Returns whether this override contains the specified track index.

equals

fun equals(obj: Any?): Boolean

fromBundle

@UnstableApi
java-static fun fromBundle(bundle: Bundle!): DefaultTrackSelector.SelectionOverride!

Restores a SelectionOverride from a Bundle.

hashCode

fun hashCode(): Int

toBundle

@UnstableApi
fun toBundle(): Bundle!

Public properties

groupIndex

val groupIndexInt

length

val lengthInt

tracks

val tracksIntArray<Int>!