public final class

TrackSelectionOverrides.Builder

extends java.lang.Object

 java.lang.Object

↳androidx.media3.common.TrackSelectionOverrides.Builder

Overview

Builder for TrackSelectionOverrides.

Summary

Constructors
publicBuilder()

Creates an builder with no TrackSelectionOverride.

Methods
public TrackSelectionOverrides.BuilderaddOverride(TrackSelectionOverrides.TrackSelectionOverride override)

Adds an override for the provided TrackGroup.

public TrackSelectionOverridesbuild()

Returns a new TrackSelectionOverrides instance with the current builder values.

public TrackSelectionOverrides.BuilderclearOverride(TrackGroup trackGroup)

Removes the override associated with the provided TrackGroup if present.

public TrackSelectionOverrides.BuilderclearOverridesOfType(int trackType)

Remove any override associated with TrackGroups of type trackType.

public TrackSelectionOverrides.BuildersetOverrideForType(TrackSelectionOverrides.TrackSelectionOverride override)

Set the override for the type of the provided TrackGroup.

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

Constructors

public Builder()

Creates an builder with no TrackSelectionOverride.

Methods

Adds an override for the provided TrackGroup.

public TrackSelectionOverrides.Builder clearOverride(TrackGroup trackGroup)

Removes the override associated with the provided TrackGroup if present.

Set the override for the type of the provided TrackGroup.

public TrackSelectionOverrides.Builder clearOverridesOfType(int trackType)

Remove any override associated with TrackGroups of type trackType.

Returns a new TrackSelectionOverrides instance with the current builder values.