public final class

DefaultTrackSelector.SelectionOverride

extends java.lang.Object

 java.lang.Object

↳androidx.media3.exoplayer.trackselection.DefaultTrackSelector.SelectionOverride

Overview

A track selection override.

Summary

Fields
public final intgroupIndex

public final intlength

public final int[]tracks

public final inttype

Constructors
publicSelectionOverride(int groupIndex, int[] tracks[])

Constructs a SelectionOverride to override tracks of a group.

publicSelectionOverride(int groupIndex, int[] tracks[], int type)

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

Methods
public booleancontainsTrack(int track)

Returns whether this override contains the specified track index.

public booleanequals(java.lang.Object obj)

public static DefaultTrackSelector.SelectionOverridefromBundle(Bundle bundle)

Restores a SelectionOverride from a .

public inthashCode()

public BundletoBundle()

from java.lang.Objectclone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait

Fields

public final int groupIndex

public final int[] tracks

public final int length

public final int type

Constructors

public SelectionOverride(int groupIndex, int[] tracks[])

Constructs a SelectionOverride to override tracks of a group.

Parameters:

groupIndex: The overriding track group index.
tracks: The overriding track indices within the track group.

public SelectionOverride(int groupIndex, int[] tracks[], int type)

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

Parameters:

groupIndex: The overriding track group index.
tracks: The overriding track indices within the track group.
type: The type that will be returned from TrackSelection.getType().

Methods

public boolean containsTrack(int track)

Returns whether this override contains the specified track index.

public int hashCode()

public boolean equals(java.lang.Object obj)

public Bundle toBundle()

public static DefaultTrackSelector.SelectionOverride fromBundle(Bundle bundle)

Restores a SelectionOverride from a .