DefaultTrackSelector.SelectionOverride


public final class DefaultTrackSelector.SelectionOverride


A track selection override.

Summary

Public fields

final int
final int
final int[]
final int

Public constructors

SelectionOverride(int groupIndex, int[] tracks)

Constructs a SelectionOverride to override tracks of a group.

@UnstableApi
SelectionOverride(
    int groupIndex,
    int[] tracks,
    @TrackSelection.Type int type
)

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

Public methods

boolean
containsTrack(int track)

Returns whether this override contains the specified track index.

boolean
static DefaultTrackSelector.SelectionOverride

Restores a SelectionOverride from a Bundle.

int
Bundle

Public fields

groupIndex

public final int groupIndex

length

public final int length

tracks

public final int[] tracks

type

@TrackSelection.Type
public final int type

Public constructors

SelectionOverride

public SelectionOverride(int groupIndex, int[] tracks)

Constructs a SelectionOverride to override tracks of a group.

Parameters
int groupIndex

The overriding track group index.

int[] tracks

The overriding track indices within the track group.

SelectionOverride

@UnstableApi
public SelectionOverride(
    int groupIndex,
    int[] tracks,
    @TrackSelection.Type int type
)

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

Parameters
int groupIndex

The overriding track group index.

int[] tracks

The overriding track indices within the track group.

@TrackSelection.Type int type

The type that will be returned from getType.

Public methods

containsTrack

public boolean containsTrack(int track)

Returns whether this override contains the specified track index.

equals

public boolean equals(@Nullable Object obj)

fromBundle

@UnstableApi
public static DefaultTrackSelector.SelectionOverride fromBundle(Bundle bundle)

Restores a SelectionOverride from a Bundle.

hashCode

public int hashCode()

toBundle

@UnstableApi
public Bundle toBundle()