Class TrackSelectionOverrides.Builder
- java.lang.Object
-
- com.google.android.exoplayer2.trackselection.TrackSelectionOverrides.Builder
-
- Enclosing class:
- TrackSelectionOverrides
public static final class TrackSelectionOverrides.Builder extends Object
Builder forTrackSelectionOverrides
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
Creates an builder with noTrackSelectionOverrides.TrackSelectionOverride
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TrackSelectionOverrides.Builder
addOverride(TrackSelectionOverrides.TrackSelectionOverride override)
Adds an override for the providedTrackGroup
.TrackSelectionOverrides
build()
Returns a newTrackSelectionOverrides
instance with the current builder values.TrackSelectionOverrides.Builder
clearOverride(TrackGroup trackGroup)
Removes the override associated with the providedTrackGroup
if present.TrackSelectionOverrides.Builder
clearOverridesOfType(@com.google.android.exoplayer2.C.TrackType int trackType)
Remove any override associated withTrackGroups
of typetrackType
.TrackSelectionOverrides.Builder
setOverrideForType(TrackSelectionOverrides.TrackSelectionOverride override)
Set the override for the type of the providedTrackGroup
.
-
-
-
Constructor Detail
-
Builder
public Builder()
Creates an builder with noTrackSelectionOverrides.TrackSelectionOverride
.
-
-
Method Detail
-
addOverride
public TrackSelectionOverrides.Builder addOverride(TrackSelectionOverrides.TrackSelectionOverride override)
Adds an override for the providedTrackGroup
.
-
clearOverride
public TrackSelectionOverrides.Builder clearOverride(TrackGroup trackGroup)
Removes the override associated with the providedTrackGroup
if present.
-
setOverrideForType
public TrackSelectionOverrides.Builder setOverrideForType(TrackSelectionOverrides.TrackSelectionOverride override)
Set the override for the type of the providedTrackGroup
.
-
clearOverridesOfType
public TrackSelectionOverrides.Builder clearOverridesOfType(@com.google.android.exoplayer2.C.TrackType int trackType)
Remove any override associated withTrackGroups
of typetrackType
.
-
build
public TrackSelectionOverrides build()
Returns a newTrackSelectionOverrides
instance with the current builder values.
-
-