public final class

DefaultTrackSelector.SelectionOverride

extends java.lang.Object

implements Bundleable

 java.lang.Object

↳androidx.media3.exoplayer.trackselection.DefaultTrackSelector.SelectionOverride

Overview

A track selection override.

Summary

Fields
public static final Bundleable.Creator<DefaultTrackSelector.SelectionOverride>CREATOR

Object that can restore SelectionOverride from a .

public final intgroupIndex

public final intlength

public final int[]tracks

public final inttype

Constructors
publicSelectionOverride(int groupIndex, int[] tracks[])

Constructs a SelectionOverride to override tracks of a group.

publicSelectionOverride(int groupIndex, int[] tracks[], int type)

Constructs a SelectionOverride of the given type to override tracks of a group.

Methods
public booleancontainsTrack(int track)

Returns whether this override contains the specified track index.

public booleanequals(java.lang.Object obj)

public inthashCode()

public BundletoBundle()

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

Fields

public final int groupIndex

public final int[] tracks

public final int length

public final int type

public static final Bundleable.Creator<DefaultTrackSelector.SelectionOverride> CREATOR

Object that can restore SelectionOverride from a .

Constructors

public SelectionOverride(int groupIndex, int[] tracks[])

Constructs a SelectionOverride to override tracks of a group.

Parameters:

groupIndex: The overriding track group index.
tracks: The overriding track indices within the track group.

public SelectionOverride(int groupIndex, int[] tracks[], int type)

Constructs a SelectionOverride of the given type to override tracks of a group.

Parameters:

groupIndex: The overriding track group index.
tracks: The overriding track indices within the track group.
type: The type that will be returned from TrackSelection.getType().

Methods

public boolean containsTrack(int track)

Returns whether this override contains the specified track index.

public int hashCode()

public boolean equals(java.lang.Object obj)

public Bundle toBundle()