public static final class ExoTrackSelection.Definition extends Object
TrackGroup.| Modifier and Type | Field | Description |
|---|---|---|
Object |
data |
Optional data associated with this selection of tracks.
|
TrackGroup |
group |
The
TrackGroup which tracks belong to. |
int |
reason |
The track selection reason.
|
int[] |
tracks |
The indices of the selected tracks in
group. |
| Constructor | Description |
|---|---|
Definition(TrackGroup group,
int... tracks) |
|
Definition(TrackGroup group,
int[] tracks,
int reason,
Object data) |
public final TrackGroup group
TrackGroup which tracks belong to.public final int[] tracks
group.public final int reason
C SELECTION_REASON_ constants.@Nullable public final Object data
public Definition(TrackGroup group, int... tracks)
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 group, int[] tracks, int reason, @Nullable Object data)
group - The TrackGroup. Must not be null.tracks - The indices of the selected tracks within the TrackGroup. Must not bereason - The track selection reason. One of the C SELECTION_REASON_ constants.data - Optional data associated with this selection of tracks.