DefaultTrackSelector.SelectionOverride


class DefaultTrackSelector.SelectionOverride : Bundleable


A track selection override.

Summary

Constants

const Bundleable.Creator<DefaultTrackSelector.SelectionOverride!>!

This property is deprecated.

Use fromBundle instead.

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!

Returns a Bundle representing the information stored in this object.

Constants

CREATOR

@UnstableApi
const val CREATORBundleable.Creator<DefaultTrackSelector.SelectionOverride!>!

Object that can restore SelectionOverride from a 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!

Returns a Bundle representing the information stored in this object.

Public properties

groupIndex

val groupIndexInt

length

val lengthInt

tracks

val tracksIntArray<Int>!