media/docs/doc/reference/com/google/android/exoplayer2/ui/TrackSelectionDialogBuilder.html
olly a038f875f6 Update Javadoc for 2.14.0
#minor-release

PiperOrigin-RevId: 373351935
2021-05-12 13:55:32 +01:00

600 lines
33 KiB
HTML

<!DOCTYPE HTML>
<!-- NewPage -->
<html lang="en">
<head><!-- start favicons snippet, use https://realfavicongenerator.net/ --><link rel="apple-touch-icon" sizes="180x180" href="/assets/apple-touch-icon.png"><link rel="icon" type="image/png" sizes="32x32" href="/assets/favicon-32x32.png"><link rel="icon" type="image/png" sizes="16x16" href="/assets/favicon-16x16.png"><link rel="manifest" href="/assets/site.webmanifest"><link rel="mask-icon" href="/assets/safari-pinned-tab.svg" color="#fc4d50"><link rel="shortcut icon" href="/assets/favicon.ico"><meta name="msapplication-TileColor" content="#ffc40d"><meta name="msapplication-config" content="/assets/browserconfig.xml"><meta name="theme-color" content="#ffffff"><!-- end favicons snippet -->
<title>TrackSelectionDialogBuilder (ExoPlayer library)</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
<link rel="stylesheet" type="text/css" href="../../../../../jquery/jquery-ui.css" title="Style">
<script type="text/javascript" src="../../../../../script.js"></script>
<script type="text/javascript" src="../../../../../jquery/jszip/dist/jszip.min.js"></script>
<script type="text/javascript" src="../../../../../jquery/jszip-utils/dist/jszip-utils.min.js"></script>
<!--[if IE]>
<script type="text/javascript" src="../../../../../jquery/jszip-utils/dist/jszip-utils-ie.min.js"></script>
<![endif]-->
<script type="text/javascript" src="../../../../../jquery/jquery-3.5.1.js"></script>
<script type="text/javascript" src="../../../../../jquery/jquery-ui.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="TrackSelectionDialogBuilder (ExoPlayer library)";
}
}
catch(err) {
}
//-->
var data = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10};
var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]};
var altColor = "altColor";
var rowColor = "rowColor";
var tableTab = "tableTab";
var activeTableTab = "activeTableTab";
var pathtoroot = "../../../../../";
var useModuleDirectories = false;
loadScripts(document, 'script');</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<header role="banner">
<nav role="navigation">
<div class="fixedNav">
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a id="navbar.top">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
<a id="navbar.top.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../index.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../../allclasses.html">All&nbsp;Classes</a></li>
</ul>
<ul class="navListSearch">
<li><label for="search">SEARCH:</label>
<input type="text" id="search" value="search" disabled="disabled">
<input type="reset" id="reset" value="reset" disabled="disabled">
</li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li><a href="#nested.class.summary">Nested</a>&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a id="skip.navbar.top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
</div>
<div class="navPadding">&nbsp;</div>
<script type="text/javascript"><!--
$('.navPadding').css('padding-top', $('.fixedNav').css("height"));
//-->
</script>
</nav>
</header>
<!-- ======== START OF CLASS DATA ======== -->
<main role="main">
<div class="header">
<div class="subTitle"><span class="packageLabelInType">Package</span>&nbsp;<a href="package-summary.html">com.google.android.exoplayer2.ui</a></div>
<h2 title="Class TrackSelectionDialogBuilder" class="title">Class TrackSelectionDialogBuilder</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li><a href="https://developer.android.com/reference/java/lang/Object.html" title="class or interface in java.lang" class="externalLink" target="_top">java.lang.Object</a></li>
<li>
<ul class="inheritance">
<li>com.google.android.exoplayer2.ui.TrackSelectionDialogBuilder</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<hr>
<pre>public final class <span class="typeNameLabel">TrackSelectionDialogBuilder</span>
extends <a href="https://developer.android.com/reference/java/lang/Object.html" title="class or interface in java.lang" class="externalLink" target="_top">Object</a></pre>
<div class="block">Builder for a dialog with a <a href="TrackSelectionView.html" title="class in com.google.android.exoplayer2.ui"><code>TrackSelectionView</code></a>.</div>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ======== NESTED CLASS SUMMARY ======== -->
<section role="region">
<ul class="blockList">
<li class="blockList"><a id="nested.class.summary">
<!-- -->
</a>
<h3>Nested Class Summary</h3>
<table class="memberSummary">
<caption><span>Nested Classes</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colSecond" scope="col">Class</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static interface&nbsp;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="TrackSelectionDialogBuilder.DialogCallback.html" title="interface in com.google.android.exoplayer2.ui">TrackSelectionDialogBuilder.DialogCallback</a></span></code></th>
<td class="colLast">
<div class="block">Callback which is invoked when a track selection has been made.</div>
</td>
</tr>
</table>
</li>
</ul>
</section>
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<section role="region">
<ul class="blockList">
<li class="blockList"><a id="constructor.summary">
<!-- -->
</a>
<h3>Constructor Summary</h3>
<table class="memberSummary">
<caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Constructor</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tr class="altColor">
<th class="colConstructorName" scope="row"><code><span class="memberNameLink"><a href="#%3Cinit%3E(android.content.Context,java.lang.CharSequence,com.google.android.exoplayer2.trackselection.DefaultTrackSelector,int)">TrackSelectionDialogBuilder</a></span>&#8203;(<a href="https://developer.android.com/reference/android/content/Context.html" title="class or interface in android.content" class="externalLink" target="_top">Context</a>&nbsp;context,
<a href="https://developer.android.com/reference/java/lang/CharSequence.html" title="class or interface in java.lang" class="externalLink" target="_top">CharSequence</a>&nbsp;title,
<a href="../trackselection/DefaultTrackSelector.html" title="class in com.google.android.exoplayer2.trackselection">DefaultTrackSelector</a>&nbsp;trackSelector,
int&nbsp;rendererIndex)</code></th>
<td class="colLast">
<div class="block">Creates a builder for a track selection dialog which automatically updates a <a href="../trackselection/DefaultTrackSelector.html" title="class in com.google.android.exoplayer2.trackselection"><code>DefaultTrackSelector</code></a>.</div>
</td>
</tr>
<tr class="rowColor">
<th class="colConstructorName" scope="row"><code><span class="memberNameLink"><a href="#%3Cinit%3E(android.content.Context,java.lang.CharSequence,com.google.android.exoplayer2.trackselection.MappingTrackSelector.MappedTrackInfo,int,com.google.android.exoplayer2.ui.TrackSelectionDialogBuilder.DialogCallback)">TrackSelectionDialogBuilder</a></span>&#8203;(<a href="https://developer.android.com/reference/android/content/Context.html" title="class or interface in android.content" class="externalLink" target="_top">Context</a>&nbsp;context,
<a href="https://developer.android.com/reference/java/lang/CharSequence.html" title="class or interface in java.lang" class="externalLink" target="_top">CharSequence</a>&nbsp;title,
<a href="../trackselection/MappingTrackSelector.MappedTrackInfo.html" title="class in com.google.android.exoplayer2.trackselection">MappingTrackSelector.MappedTrackInfo</a>&nbsp;mappedTrackInfo,
int&nbsp;rendererIndex,
<a href="TrackSelectionDialogBuilder.DialogCallback.html" title="interface in com.google.android.exoplayer2.ui">TrackSelectionDialogBuilder.DialogCallback</a>&nbsp;callback)</code></th>
<td class="colLast">
<div class="block">Creates a builder for a track selection dialog.</div>
</td>
</tr>
</table>
</li>
</ul>
</section>
<!-- ========== METHOD SUMMARY =========== -->
<section role="region">
<ul class="blockList">
<li class="blockList"><a id="method.summary">
<!-- -->
</a>
<h3>Method Summary</h3>
<table class="memberSummary">
<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd">&nbsp;</span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd">&nbsp;</span></span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colSecond" scope="col">Method</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tr id="i0" class="altColor">
<td class="colFirst"><code><a href="https://developer.android.com/reference/android/app/Dialog.html" title="class or interface in android.app" class="externalLink" target="_top">Dialog</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#build()">build</a></span>()</code></th>
<td class="colLast">
<div class="block">Builds the dialog.</div>
</td>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><code><a href="TrackSelectionDialogBuilder.html" title="class in com.google.android.exoplayer2.ui">TrackSelectionDialogBuilder</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setAllowAdaptiveSelections(boolean)">setAllowAdaptiveSelections</a></span>&#8203;(boolean&nbsp;allowAdaptiveSelections)</code></th>
<td class="colLast">
<div class="block">Sets whether adaptive selections (consisting of more than one track) can be made.</div>
</td>
</tr>
<tr id="i2" class="altColor">
<td class="colFirst"><code><a href="TrackSelectionDialogBuilder.html" title="class in com.google.android.exoplayer2.ui">TrackSelectionDialogBuilder</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setAllowMultipleOverrides(boolean)">setAllowMultipleOverrides</a></span>&#8203;(boolean&nbsp;allowMultipleOverrides)</code></th>
<td class="colLast">
<div class="block">Sets whether multiple overrides can be set and selected, i.e.</div>
</td>
</tr>
<tr id="i3" class="rowColor">
<td class="colFirst"><code><a href="TrackSelectionDialogBuilder.html" title="class in com.google.android.exoplayer2.ui">TrackSelectionDialogBuilder</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setIsDisabled(boolean)">setIsDisabled</a></span>&#8203;(boolean&nbsp;isDisabled)</code></th>
<td class="colLast">
<div class="block">Sets whether the selection is initially shown as disabled.</div>
</td>
</tr>
<tr id="i4" class="altColor">
<td class="colFirst"><code><a href="TrackSelectionDialogBuilder.html" title="class in com.google.android.exoplayer2.ui">TrackSelectionDialogBuilder</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setOverride(com.google.android.exoplayer2.trackselection.DefaultTrackSelector.SelectionOverride)">setOverride</a></span>&#8203;(<a href="../trackselection/DefaultTrackSelector.SelectionOverride.html" title="class in com.google.android.exoplayer2.trackselection">DefaultTrackSelector.SelectionOverride</a>&nbsp;override)</code></th>
<td class="colLast">
<div class="block">Sets the initial selection override to show.</div>
</td>
</tr>
<tr id="i5" class="rowColor">
<td class="colFirst"><code><a href="TrackSelectionDialogBuilder.html" title="class in com.google.android.exoplayer2.ui">TrackSelectionDialogBuilder</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setOverrides(java.util.List)">setOverrides</a></span>&#8203;(<a href="https://developer.android.com/reference/java/util/List.html" title="class or interface in java.util" class="externalLink">List</a>&lt;<a href="../trackselection/DefaultTrackSelector.SelectionOverride.html" title="class in com.google.android.exoplayer2.trackselection" target="_top">DefaultTrackSelector.SelectionOverride</a>&gt;&nbsp;overrides)</code></th>
<td class="colLast">
<div class="block">Sets the list of initial selection overrides to show.</div>
</td>
</tr>
<tr id="i6" class="altColor">
<td class="colFirst"><code><a href="TrackSelectionDialogBuilder.html" title="class in com.google.android.exoplayer2.ui">TrackSelectionDialogBuilder</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setShowDisableOption(boolean)">setShowDisableOption</a></span>&#8203;(boolean&nbsp;showDisableOption)</code></th>
<td class="colLast">
<div class="block">Sets whether an option is available for disabling the renderer.</div>
</td>
</tr>
<tr id="i7" class="rowColor">
<td class="colFirst"><code><a href="TrackSelectionDialogBuilder.html" title="class in com.google.android.exoplayer2.ui">TrackSelectionDialogBuilder</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setTheme(int)">setTheme</a></span>&#8203;(int&nbsp;themeResId)</code></th>
<td class="colLast">
<div class="block">Sets the resource ID of the theme used to inflate this dialog.</div>
</td>
</tr>
<tr id="i8" class="altColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setTrackFormatComparator(java.util.Comparator)">setTrackFormatComparator</a></span>&#8203;(<a href="https://developer.android.com/reference/java/util/Comparator.html" title="class or interface in java.util" class="externalLink">Comparator</a>&lt;<a href="../Format.html" title="class in com.google.android.exoplayer2" target="_top">Format</a>&gt;&nbsp;trackFormatComparator)</code></th>
<td class="colLast">
<div class="block">Sets a <a href="https://developer.android.com/reference/java/util/Comparator.html" title="class or interface in java.util" class="externalLink" target="_top"><code>Comparator</code></a> used to determine the display order of the tracks within each track
group.</div>
</td>
</tr>
<tr id="i9" class="rowColor">
<td class="colFirst"><code><a href="TrackSelectionDialogBuilder.html" title="class in com.google.android.exoplayer2.ui">TrackSelectionDialogBuilder</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setTrackNameProvider(com.google.android.exoplayer2.ui.TrackNameProvider)">setTrackNameProvider</a></span>&#8203;(<a href="TrackNameProvider.html" title="interface in com.google.android.exoplayer2.ui">TrackNameProvider</a>&nbsp;trackNameProvider)</code></th>
<td class="colLast">
<div class="block">Sets the <a href="TrackNameProvider.html" title="interface in com.google.android.exoplayer2.ui"><code>TrackNameProvider</code></a> used to generate the user visible name of each track and
updates the view with track names queried from the specified provider.</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a id="methods.inherited.from.class.java.lang.Object">
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;java.lang.<a href="https://developer.android.com/reference/java/lang/Object.html" title="class or interface in java.lang" class="externalLink" target="_top">Object</a></h3>
<code><a href="https://developer.android.com/reference/java/lang/Object.html#clone()" title="class or interface in java.lang" class="externalLink">clone</a>, <a href="https://developer.android.com/reference/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang" class="externalLink">equals</a>, <a href="https://developer.android.com/reference/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang" class="externalLink">finalize</a>, <a href="https://developer.android.com/reference/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang" class="externalLink">getClass</a>, <a href="https://developer.android.com/reference/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang" class="externalLink">hashCode</a>, <a href="https://developer.android.com/reference/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang" class="externalLink">notify</a>, <a href="https://developer.android.com/reference/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang" class="externalLink">notifyAll</a>, <a href="https://developer.android.com/reference/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang" class="externalLink">toString</a>, <a href="https://developer.android.com/reference/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang" class="externalLink">wait</a>, <a href="https://developer.android.com/reference/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang" class="externalLink">wait</a>, <a href="https://developer.android.com/reference/java/lang/Object.html?is-external=true#wait(long,int)" title="class or interface in java.lang" class="externalLink" target="_top">wait</a></code></li>
</ul>
</li>
</ul>
</section>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<section role="region">
<ul class="blockList">
<li class="blockList"><a id="constructor.detail">
<!-- -->
</a>
<h3>Constructor Detail</h3>
<a id="&lt;init&gt;(android.content.Context,java.lang.CharSequence,com.google.android.exoplayer2.trackselection.MappingTrackSelector.MappedTrackInfo,int,com.google.android.exoplayer2.ui.TrackSelectionDialogBuilder.DialogCallback)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>TrackSelectionDialogBuilder</h4>
<pre>public&nbsp;TrackSelectionDialogBuilder&#8203;(<a href="https://developer.android.com/reference/android/content/Context.html" title="class or interface in android.content" class="externalLink" target="_top">Context</a>&nbsp;context,
<a href="https://developer.android.com/reference/java/lang/CharSequence.html" title="class or interface in java.lang" class="externalLink" target="_top">CharSequence</a>&nbsp;title,
<a href="../trackselection/MappingTrackSelector.MappedTrackInfo.html" title="class in com.google.android.exoplayer2.trackselection">MappingTrackSelector.MappedTrackInfo</a>&nbsp;mappedTrackInfo,
int&nbsp;rendererIndex,
<a href="TrackSelectionDialogBuilder.DialogCallback.html" title="interface in com.google.android.exoplayer2.ui">TrackSelectionDialogBuilder.DialogCallback</a>&nbsp;callback)</pre>
<div class="block">Creates a builder for a track selection dialog.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>context</code> - The context of the dialog.</dd>
<dd><code>title</code> - The title of the dialog.</dd>
<dd><code>mappedTrackInfo</code> - The <a href="../trackselection/MappingTrackSelector.MappedTrackInfo.html" title="class in com.google.android.exoplayer2.trackselection"><code>MappingTrackSelector.MappedTrackInfo</code></a> containing the track information.</dd>
<dd><code>rendererIndex</code> - The renderer index in the <code>mappedTrackInfo</code> for which the track
selection is shown.</dd>
<dd><code>callback</code> - The <a href="TrackSelectionDialogBuilder.DialogCallback.html" title="interface in com.google.android.exoplayer2.ui"><code>TrackSelectionDialogBuilder.DialogCallback</code></a> invoked when a track selection has been made.</dd>
</dl>
</li>
</ul>
<a id="&lt;init&gt;(android.content.Context,java.lang.CharSequence,com.google.android.exoplayer2.trackselection.DefaultTrackSelector,int)">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>TrackSelectionDialogBuilder</h4>
<pre>public&nbsp;TrackSelectionDialogBuilder&#8203;(<a href="https://developer.android.com/reference/android/content/Context.html" title="class or interface in android.content" class="externalLink" target="_top">Context</a>&nbsp;context,
<a href="https://developer.android.com/reference/java/lang/CharSequence.html" title="class or interface in java.lang" class="externalLink" target="_top">CharSequence</a>&nbsp;title,
<a href="../trackselection/DefaultTrackSelector.html" title="class in com.google.android.exoplayer2.trackselection">DefaultTrackSelector</a>&nbsp;trackSelector,
int&nbsp;rendererIndex)</pre>
<div class="block">Creates a builder for a track selection dialog which automatically updates a <a href="../trackselection/DefaultTrackSelector.html" title="class in com.google.android.exoplayer2.trackselection"><code>DefaultTrackSelector</code></a>.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>context</code> - The context of the dialog.</dd>
<dd><code>title</code> - The title of the dialog.</dd>
<dd><code>trackSelector</code> - A <a href="../trackselection/DefaultTrackSelector.html" title="class in com.google.android.exoplayer2.trackselection"><code>DefaultTrackSelector</code></a> whose current selection is used to set up
the dialog and which is updated when new tracks are selected in the dialog.</dd>
<dd><code>rendererIndex</code> - The renderer index in the <code>trackSelector</code> for which the track
selection is shown.</dd>
</dl>
</li>
</ul>
</li>
</ul>
</section>
<!-- ============ METHOD DETAIL ========== -->
<section role="region">
<ul class="blockList">
<li class="blockList"><a id="method.detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a id="setTheme(int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setTheme</h4>
<pre class="methodSignature">public&nbsp;<a href="TrackSelectionDialogBuilder.html" title="class in com.google.android.exoplayer2.ui">TrackSelectionDialogBuilder</a>&nbsp;setTheme&#8203;(@StyleRes
int&nbsp;themeResId)</pre>
<div class="block">Sets the resource ID of the theme used to inflate this dialog.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>themeResId</code> - The resource ID of the theme.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>This builder, for convenience.</dd>
</dl>
</li>
</ul>
<a id="setIsDisabled(boolean)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setIsDisabled</h4>
<pre class="methodSignature">public&nbsp;<a href="TrackSelectionDialogBuilder.html" title="class in com.google.android.exoplayer2.ui">TrackSelectionDialogBuilder</a>&nbsp;setIsDisabled&#8203;(boolean&nbsp;isDisabled)</pre>
<div class="block">Sets whether the selection is initially shown as disabled.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>isDisabled</code> - Whether the selection is initially shown as disabled.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>This builder, for convenience.</dd>
</dl>
</li>
</ul>
<a id="setOverride(com.google.android.exoplayer2.trackselection.DefaultTrackSelector.SelectionOverride)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setOverride</h4>
<pre class="methodSignature">public&nbsp;<a href="TrackSelectionDialogBuilder.html" title="class in com.google.android.exoplayer2.ui">TrackSelectionDialogBuilder</a>&nbsp;setOverride&#8203;(@Nullable
<a href="../trackselection/DefaultTrackSelector.SelectionOverride.html" title="class in com.google.android.exoplayer2.trackselection">DefaultTrackSelector.SelectionOverride</a>&nbsp;override)</pre>
<div class="block">Sets the initial selection override to show.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>override</code> - The initial override to show, or null for no override.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>This builder, for convenience.</dd>
</dl>
</li>
</ul>
<a id="setOverrides(java.util.List)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setOverrides</h4>
<pre class="methodSignature">public&nbsp;<a href="TrackSelectionDialogBuilder.html" title="class in com.google.android.exoplayer2.ui">TrackSelectionDialogBuilder</a>&nbsp;setOverrides&#8203;(<a href="https://developer.android.com/reference/java/util/List.html" title="class or interface in java.util" class="externalLink">List</a>&lt;<a href="../trackselection/DefaultTrackSelector.SelectionOverride.html" title="class in com.google.android.exoplayer2.trackselection" target="_top">DefaultTrackSelector.SelectionOverride</a>&gt;&nbsp;overrides)</pre>
<div class="block">Sets the list of initial selection overrides to show.
<p>Note that only the first override will be used unless <a href="#setAllowMultipleOverrides(boolean)"><code>setAllowMultipleOverrides(boolean)</code></a> is set to <code>true</code>.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>overrides</code> - The list of initial overrides to show. There must be at most one override for
each track group.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>This builder, for convenience.</dd>
</dl>
</li>
</ul>
<a id="setAllowAdaptiveSelections(boolean)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setAllowAdaptiveSelections</h4>
<pre class="methodSignature">public&nbsp;<a href="TrackSelectionDialogBuilder.html" title="class in com.google.android.exoplayer2.ui">TrackSelectionDialogBuilder</a>&nbsp;setAllowAdaptiveSelections&#8203;(boolean&nbsp;allowAdaptiveSelections)</pre>
<div class="block">Sets whether adaptive selections (consisting of more than one track) can be made.
<p>For the selection view to enable adaptive selection it is necessary both for this feature to
be enabled, and for the target renderer to support adaptation between the available tracks.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>allowAdaptiveSelections</code> - Whether adaptive selection is enabled.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>This builder, for convenience.</dd>
</dl>
</li>
</ul>
<a id="setAllowMultipleOverrides(boolean)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setAllowMultipleOverrides</h4>
<pre class="methodSignature">public&nbsp;<a href="TrackSelectionDialogBuilder.html" title="class in com.google.android.exoplayer2.ui">TrackSelectionDialogBuilder</a>&nbsp;setAllowMultipleOverrides&#8203;(boolean&nbsp;allowMultipleOverrides)</pre>
<div class="block">Sets whether multiple overrides can be set and selected, i.e. tracks from multiple track groups
can be selected.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>allowMultipleOverrides</code> - Whether multiple track selection overrides are allowed.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>This builder, for convenience.</dd>
</dl>
</li>
</ul>
<a id="setShowDisableOption(boolean)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setShowDisableOption</h4>
<pre class="methodSignature">public&nbsp;<a href="TrackSelectionDialogBuilder.html" title="class in com.google.android.exoplayer2.ui">TrackSelectionDialogBuilder</a>&nbsp;setShowDisableOption&#8203;(boolean&nbsp;showDisableOption)</pre>
<div class="block">Sets whether an option is available for disabling the renderer.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>showDisableOption</code> - Whether the disable option is shown.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>This builder, for convenience.</dd>
</dl>
</li>
</ul>
<a id="setTrackFormatComparator(java.util.Comparator)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setTrackFormatComparator</h4>
<pre class="methodSignature">public&nbsp;void&nbsp;setTrackFormatComparator&#8203;(@Nullable
<a href="https://developer.android.com/reference/java/util/Comparator.html" title="class or interface in java.util" class="externalLink">Comparator</a>&lt;<a href="../Format.html" title="class in com.google.android.exoplayer2" target="_top">Format</a>&gt;&nbsp;trackFormatComparator)</pre>
<div class="block">Sets a <a href="https://developer.android.com/reference/java/util/Comparator.html" title="class or interface in java.util" class="externalLink" target="_top"><code>Comparator</code></a> used to determine the display order of the tracks within each track
group.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>trackFormatComparator</code> - The comparator, or <code>null</code> to use the original order.</dd>
</dl>
</li>
</ul>
<a id="setTrackNameProvider(com.google.android.exoplayer2.ui.TrackNameProvider)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setTrackNameProvider</h4>
<pre class="methodSignature">public&nbsp;<a href="TrackSelectionDialogBuilder.html" title="class in com.google.android.exoplayer2.ui">TrackSelectionDialogBuilder</a>&nbsp;setTrackNameProvider&#8203;(@Nullable
<a href="TrackNameProvider.html" title="interface in com.google.android.exoplayer2.ui">TrackNameProvider</a>&nbsp;trackNameProvider)</pre>
<div class="block">Sets the <a href="TrackNameProvider.html" title="interface in com.google.android.exoplayer2.ui"><code>TrackNameProvider</code></a> used to generate the user visible name of each track and
updates the view with track names queried from the specified provider.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>trackNameProvider</code> - The <a href="TrackNameProvider.html" title="interface in com.google.android.exoplayer2.ui"><code>TrackNameProvider</code></a> to use, or null to use the default.</dd>
</dl>
</li>
</ul>
<a id="build()">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>build</h4>
<pre class="methodSignature">public&nbsp;<a href="https://developer.android.com/reference/android/app/Dialog.html" title="class or interface in android.app" class="externalLink" target="_top">Dialog</a>&nbsp;build()</pre>
<div class="block">Builds the dialog.</div>
</li>
</ul>
</li>
</ul>
</section>
</li>
</ul>
</div>
</div>
</main>
<!-- ========= END OF CLASS DATA ========= -->
<footer role="contentinfo">
<nav role="navigation">
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a id="navbar.bottom">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
<a id="navbar.bottom.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../index.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../../allclasses.html">All&nbsp;Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li><a href="#nested.class.summary">Nested</a>&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a id="skip.navbar.bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
</nav>
</footer>
</body>
</html>