public final class

ExoTrackSelection.Definition

extends java.lang.Object

 java.lang.Object

↳androidx.media3.exoplayer.trackselection.ExoTrackSelection.Definition

Overview

Contains of a subset of selected tracks belonging to a TrackGroup.

Summary

Fields
public final TrackGroupgroup

The TrackGroup which tracks belong to.

public final int[]tracks

The indices of the selected tracks in ExoTrackSelection.Definition.group.

public final inttype

The type that will be returned from TrackSelection.getType().

Constructors
publicDefinition(TrackGroup group, int[] tracks[])

publicDefinition(TrackGroup group, int[] tracks[], int type)

Methods
from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Fields

public final TrackGroup group

The TrackGroup which tracks belong to.

public final int[] tracks

The indices of the selected tracks in ExoTrackSelection.Definition.group.

public final int type

The type that will be returned from TrackSelection.getType().

Constructors

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.

public Definition(TrackGroup group, int[] tracks[], 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().