docs/doc/reference/com/google/android/exoplayer2/trackselection/ExoTrackSelection.Definition.html
Package com.google.android.exoplayer2.trackselection
Enclosing interface:ExoTrackSelection
public static final classExoTrackSelection.Definitionextends[Object](https://developer.android.com/reference/java/lang/Object.html "class or interface in java.lang")
Contains of a subset of selected tracks belonging to a TrackGroup.
Fields | Modifier and Type | Field | Description |
| --- | --- | --- |
| TrackGroup | group |
The TrackGroup which tracks belong to.
|
| int[] | tracks |
The indices of the selected tracks in group.
|
| @com.google.android.exoplayer2.trackselection.TrackSelection.Type int | type |
The type that will be returned from TrackSelection.getType().
|
Constructors | Constructor | Description |
| --- | --- |
| Definition(TrackGroup group, int... tracks) | |
| Definition(TrackGroup group, int[] tracks, @com.google.android.exoplayer2.trackselection.TrackSelection.Type int type) | |
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
public final[TrackGroup](../source/TrackGroup.html "class in com.google.android.exoplayer2.source")group
The TrackGroup which tracks belong to.
-
public final int[] tracks
The indices of the selected tracks in group.
-
public final @com.google.android.exoplayer2.trackselection.TrackSelection.Type int type
The type that will be returned from TrackSelection.getType().
-
public Definition([TrackGroup](../source/TrackGroup.html "class in com.google.android.exoplayer2.source")group,
int... tracks)
Parameters:group - The TrackGroup. Must not be null.tracks - The indices of the selected tracks within the TrackGroup. Must not be null or empty. May be in any order.
-
public Definition([TrackGroup](../source/TrackGroup.html "class in com.google.android.exoplayer2.source")group,
int[] tracks,
@com.google.android.exoplayer2.trackselection.TrackSelection.Type int type)
Parameters:group - The TrackGroup. Must not be null.tracks - The indices of the selected tracks within the TrackGroup. Must not be null or empty. May be in any order.type - The type that will be returned from TrackSelection.getType().