Class ExoTrackSelection.Definition

  • Enclosing interface:
    ExoTrackSelection

    public static final class ExoTrackSelection.Definition
    extends Object
    Contains of a subset of selected tracks belonging to a TrackGroup.
    • Field Detail

      • tracks

        public final int[] tracks
        The indices of the selected tracks in group.
      • reason

        public final int reason
        The track selection reason. One of the C SELECTION_REASON_ constants.
      • data

        @Nullable
        public final Object data
        Optional data associated with this selection of tracks.
    • Constructor Detail

      • Definition

        public Definition​(TrackGroup 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.
      • Definition

        public Definition​(TrackGroup group,
                          int[] tracks,
                          int reason,
                          @Nullable
                          Object data)
        Parameters:
        group - The TrackGroup. Must not be null.
        tracks - The indices of the selected tracks within the TrackGroup. Must not be
        reason - The track selection reason. One of the C SELECTION_REASON_ constants.
        data - Optional data associated with this selection of tracks.