Class ExoTrackSelection.Definition
- java.lang.Object
-
- com.google.android.exoplayer2.trackselection.ExoTrackSelection.Definition
-
- Enclosing interface:
- ExoTrackSelection
public static final class ExoTrackSelection.Definition extends Object
Contains of a subset of selected tracks belonging to aTrackGroup.
-
-
Field Summary
Fields Modifier and Type Field Description TrackGroupgroupTheTrackGroupwhich tracks belong to.int[]tracksThe indices of the selected tracks ingroup.@com.google.android.exoplayer2.trackselection.TrackSelection.Type inttypeThe type that will be returned fromTrackSelection.getType().
-
Constructor Summary
Constructors Constructor Description Definition(TrackGroup group, int... tracks)Definition(TrackGroup group, int[] tracks, @com.google.android.exoplayer2.trackselection.TrackSelection.Type int type)
-
-
-
Field Detail
-
group
public final TrackGroup group
TheTrackGroupwhich tracks belong to.
-
tracks
public final int[] tracks
The indices of the selected tracks ingroup.
-
type
public final @com.google.android.exoplayer2.trackselection.TrackSelection.Type int type
The type that will be returned fromTrackSelection.getType().
-
-
Constructor Detail
-
Definition
public Definition(TrackGroup group, int... tracks)
- Parameters:
group- TheTrackGroup. Must not be null.tracks- The indices of the selected tracks within theTrackGroup. Must not be null or empty. May be in any order.
-
Definition
public Definition(TrackGroup group, int[] tracks, @com.google.android.exoplayer2.trackselection.TrackSelection.Type int type)
- Parameters:
group- TheTrackGroup. Must not be null.tracks- The indices of the selected tracks within theTrackGroup. Must not be null or empty. May be in any order.type- The type that will be returned fromTrackSelection.getType().
-
-