docs/doc/reference/com/google/android/exoplayer2/trackselection/DefaultTrackSelector.SelectionOverride.html
Package com.google.android.exoplayer2.trackselection
All Implemented Interfaces:BundleableEnclosing class:DefaultTrackSelector
public static final classDefaultTrackSelector.SelectionOverrideextends[Object](https://developer.android.com/reference/java/lang/Object.html "class or interface in java.lang")implements[Bundleable](../Bundleable.html "interface in com.google.android.exoplayer2")
A track selection override.
-
Bundleable.Creator<T extends Bundleable>
Fields | Modifier and Type | Field | Description |
| --- | --- | --- |
| static Bundleable.Creator<DefaultTrackSelector.SelectionOverride> | CREATOR |
Object that can restore SelectionOverride from a Bundle.
|
| int | groupIndex | |
| int | length | |
| int[] | tracks | |
| @com.google.android.exoplayer2.trackselection.TrackSelection.Type int | type | |
Constructors | Constructor | Description |
| --- | --- |
| SelectionOverride(int groupIndex, int... tracks) |
Constructs a SelectionOverride to override tracks of a group.
|
| SelectionOverride(int groupIndex, int[] tracks, @com.google.android.exoplayer2.trackselection.TrackSelection.Type int type) |
Constructs a SelectionOverride of the given type to override tracks of a group.
|
All Methods Instance Methods Concrete Methods | Modifier and Type | Method | Description |
| --- | --- | --- |
| boolean | containsTrack(int track) |
Returns whether this override contains the specified track index.
|
| boolean | equals(Object obj) | |
| int | hashCode() | |
| Bundle | toBundle() |
Returns a Bundle representing the information stored in this object.
|
-
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
public final int groupIndex
-
public final int[] tracks
-
public final int length
-
public final @com.google.android.exoplayer2.trackselection.TrackSelection.Type int type
-
public static final[Bundleable.Creator](../Bundleable.Creator.html "interface in com.google.android.exoplayer2")<[DefaultTrackSelector.SelectionOverride](DefaultTrackSelector.SelectionOverride.html "class in com.google.android.exoplayer2.trackselection")> CREATOR
Object that can restore SelectionOverride from a Bundle.
-
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,
@com.google.android.exoplayer2.trackselection.TrackSelection.Type 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().
-
public boolean containsTrack(int track)
Returns whether this override contains the specified track index.
-
public int hashCode()
Overrides:hashCode in class Object
-
public boolean equals(@Nullable[Object](https://developer.android.com/reference/java/lang/Object.html "class or interface in java.lang")obj)
Overrides:equals in class Object
-
public[Bundle](https://developer.android.com/reference/android/os/Bundle.html "class or interface in android.os")toBundle()
Description copied from interface: Bundleable
Returns a Bundle representing the information stored in this object.
Specified by:toBundle in interface Bundleable