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

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

655 lines
35 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>PlayerNotificationManager.Builder (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="PlayerNotificationManager.Builder (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,"i10":10,"i11":10,"i12":10,"i13":10,"i14":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>Nested&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 PlayerNotificationManager.Builder" class="title">Class PlayerNotificationManager.Builder</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.PlayerNotificationManager.Builder</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>Enclosing class:</dt>
<dd><a href="PlayerNotificationManager.html" title="class in com.google.android.exoplayer2.ui">PlayerNotificationManager</a></dd>
</dl>
<hr>
<pre>public static class <span class="typeNameLabel">PlayerNotificationManager.Builder</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">A builder for <a href="PlayerNotificationManager.html" title="class in com.google.android.exoplayer2.ui"><code>PlayerNotificationManager</code></a> instances.</div>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ======== 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,int,java.lang.String,com.google.android.exoplayer2.ui.PlayerNotificationManager.MediaDescriptionAdapter)">Builder</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,
int&nbsp;notificationId,
<a href="https://developer.android.com/reference/java/lang/String.html" title="class or interface in java.lang" class="externalLink" target="_top">String</a>&nbsp;channelId,
<a href="PlayerNotificationManager.MediaDescriptionAdapter.html" title="interface in com.google.android.exoplayer2.ui">PlayerNotificationManager.MediaDescriptionAdapter</a>&nbsp;mediaDescriptionAdapter)</code></th>
<td class="colLast">
<div class="block">Creates an instance.</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="PlayerNotificationManager.html" title="class in com.google.android.exoplayer2.ui">PlayerNotificationManager</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 <a href="PlayerNotificationManager.html" title="class in com.google.android.exoplayer2.ui"><code>PlayerNotificationManager</code></a>.</div>
</td>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><code><a href="PlayerNotificationManager.Builder.html" title="class in com.google.android.exoplayer2.ui">PlayerNotificationManager.Builder</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setChannelDescriptionResourceId(int)">setChannelDescriptionResourceId</a></span>&#8203;(int&nbsp;channelDescriptionResourceId)</code></th>
<td class="colLast">
<div class="block">The description of the channel.</div>
</td>
</tr>
<tr id="i2" class="altColor">
<td class="colFirst"><code><a href="PlayerNotificationManager.Builder.html" title="class in com.google.android.exoplayer2.ui">PlayerNotificationManager.Builder</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setChannelImportance(int)">setChannelImportance</a></span>&#8203;(int&nbsp;channelImportance)</code></th>
<td class="colLast">
<div class="block">The importance of the channel.</div>
</td>
</tr>
<tr id="i3" class="rowColor">
<td class="colFirst"><code><a href="PlayerNotificationManager.Builder.html" title="class in com.google.android.exoplayer2.ui">PlayerNotificationManager.Builder</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setChannelNameResourceId(int)">setChannelNameResourceId</a></span>&#8203;(int&nbsp;channelNameResourceId)</code></th>
<td class="colLast">
<div class="block">The name of the channel.</div>
</td>
</tr>
<tr id="i4" class="altColor">
<td class="colFirst"><code><a href="PlayerNotificationManager.Builder.html" title="class in com.google.android.exoplayer2.ui">PlayerNotificationManager.Builder</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setCustomActionReceiver(com.google.android.exoplayer2.ui.PlayerNotificationManager.CustomActionReceiver)">setCustomActionReceiver</a></span>&#8203;(<a href="PlayerNotificationManager.CustomActionReceiver.html" title="interface in com.google.android.exoplayer2.ui">PlayerNotificationManager.CustomActionReceiver</a>&nbsp;customActionReceiver)</code></th>
<td class="colLast">
<div class="block">The <a href="PlayerNotificationManager.CustomActionReceiver.html" title="interface in com.google.android.exoplayer2.ui"><code>PlayerNotificationManager.CustomActionReceiver</code></a> to be used.</div>
</td>
</tr>
<tr id="i5" class="rowColor">
<td class="colFirst"><code><a href="PlayerNotificationManager.Builder.html" title="class in com.google.android.exoplayer2.ui">PlayerNotificationManager.Builder</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setFastForwardActionIconResourceId(int)">setFastForwardActionIconResourceId</a></span>&#8203;(int&nbsp;fastForwardActionIconResourceId)</code></th>
<td class="colLast">
<div class="block">The resource id of the drawable to be used as the icon of action <a href="PlayerNotificationManager.html#ACTION_FAST_FORWARD"><code>PlayerNotificationManager.ACTION_FAST_FORWARD</code></a>.</div>
</td>
</tr>
<tr id="i6" class="altColor">
<td class="colFirst"><code><a href="PlayerNotificationManager.Builder.html" title="class in com.google.android.exoplayer2.ui">PlayerNotificationManager.Builder</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setGroup(java.lang.String)">setGroup</a></span>&#8203;(<a href="https://developer.android.com/reference/java/lang/String.html" title="class or interface in java.lang" class="externalLink" target="_top">String</a>&nbsp;groupKey)</code></th>
<td class="colLast">
<div class="block">The key of the group the media notification should belong to.</div>
</td>
</tr>
<tr id="i7" class="rowColor">
<td class="colFirst"><code><a href="PlayerNotificationManager.Builder.html" title="class in com.google.android.exoplayer2.ui">PlayerNotificationManager.Builder</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setNextActionIconResourceId(int)">setNextActionIconResourceId</a></span>&#8203;(int&nbsp;nextActionIconResourceId)</code></th>
<td class="colLast">
<div class="block">The resource id of the drawable to be used as the icon of action <a href="PlayerNotificationManager.html#ACTION_NEXT"><code>PlayerNotificationManager.ACTION_NEXT</code></a>.</div>
</td>
</tr>
<tr id="i8" class="altColor">
<td class="colFirst"><code><a href="PlayerNotificationManager.Builder.html" title="class in com.google.android.exoplayer2.ui">PlayerNotificationManager.Builder</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setNotificationListener(com.google.android.exoplayer2.ui.PlayerNotificationManager.NotificationListener)">setNotificationListener</a></span>&#8203;(<a href="PlayerNotificationManager.NotificationListener.html" title="interface in com.google.android.exoplayer2.ui">PlayerNotificationManager.NotificationListener</a>&nbsp;notificationListener)</code></th>
<td class="colLast">
<div class="block">The <a href="PlayerNotificationManager.NotificationListener.html" title="interface in com.google.android.exoplayer2.ui"><code>PlayerNotificationManager.NotificationListener</code></a> to be used.</div>
</td>
</tr>
<tr id="i9" class="rowColor">
<td class="colFirst"><code><a href="PlayerNotificationManager.Builder.html" title="class in com.google.android.exoplayer2.ui">PlayerNotificationManager.Builder</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setPauseActionIconResourceId(int)">setPauseActionIconResourceId</a></span>&#8203;(int&nbsp;pauseActionIconResourceId)</code></th>
<td class="colLast">
<div class="block">The resource id of the drawable to be used as the icon of action <a href="PlayerNotificationManager.html#ACTION_PAUSE"><code>PlayerNotificationManager.ACTION_PAUSE</code></a>.</div>
</td>
</tr>
<tr id="i10" class="altColor">
<td class="colFirst"><code><a href="PlayerNotificationManager.Builder.html" title="class in com.google.android.exoplayer2.ui">PlayerNotificationManager.Builder</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setPlayActionIconResourceId(int)">setPlayActionIconResourceId</a></span>&#8203;(int&nbsp;playActionIconResourceId)</code></th>
<td class="colLast">
<div class="block">The resource id of the drawable to be used as the icon of action <a href="PlayerNotificationManager.html#ACTION_PLAY"><code>PlayerNotificationManager.ACTION_PLAY</code></a>.</div>
</td>
</tr>
<tr id="i11" class="rowColor">
<td class="colFirst"><code><a href="PlayerNotificationManager.Builder.html" title="class in com.google.android.exoplayer2.ui">PlayerNotificationManager.Builder</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setPreviousActionIconResourceId(int)">setPreviousActionIconResourceId</a></span>&#8203;(int&nbsp;previousActionIconResourceId)</code></th>
<td class="colLast">
<div class="block">The resource id of the drawable to be used as the icon of action <a href="PlayerNotificationManager.html#ACTION_PREVIOUS"><code>PlayerNotificationManager.ACTION_PREVIOUS</code></a>.</div>
</td>
</tr>
<tr id="i12" class="altColor">
<td class="colFirst"><code><a href="PlayerNotificationManager.Builder.html" title="class in com.google.android.exoplayer2.ui">PlayerNotificationManager.Builder</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setRewindActionIconResourceId(int)">setRewindActionIconResourceId</a></span>&#8203;(int&nbsp;rewindActionIconResourceId)</code></th>
<td class="colLast">
<div class="block">The resource id of the drawable to be used as the icon of action <a href="PlayerNotificationManager.html#ACTION_REWIND"><code>PlayerNotificationManager.ACTION_REWIND</code></a>.</div>
</td>
</tr>
<tr id="i13" class="rowColor">
<td class="colFirst"><code><a href="PlayerNotificationManager.Builder.html" title="class in com.google.android.exoplayer2.ui">PlayerNotificationManager.Builder</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setSmallIconResourceId(int)">setSmallIconResourceId</a></span>&#8203;(int&nbsp;smallIconResourceId)</code></th>
<td class="colLast">
<div class="block">The resource id of the small icon of the notification shown in the status bar.</div>
</td>
</tr>
<tr id="i14" class="altColor">
<td class="colFirst"><code><a href="PlayerNotificationManager.Builder.html" title="class in com.google.android.exoplayer2.ui">PlayerNotificationManager.Builder</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setStopActionIconResourceId(int)">setStopActionIconResourceId</a></span>&#8203;(int&nbsp;stopActionIconResourceId)</code></th>
<td class="colLast">
<div class="block">The resource id of the drawable to be used as the icon of action <a href="PlayerNotificationManager.html#ACTION_STOP"><code>PlayerNotificationManager.ACTION_STOP</code></a>.</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,int,java.lang.String,com.google.android.exoplayer2.ui.PlayerNotificationManager.MediaDescriptionAdapter)">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>Builder</h4>
<pre>public&nbsp;Builder&#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,
int&nbsp;notificationId,
<a href="https://developer.android.com/reference/java/lang/String.html" title="class or interface in java.lang" class="externalLink" target="_top">String</a>&nbsp;channelId,
<a href="PlayerNotificationManager.MediaDescriptionAdapter.html" title="interface in com.google.android.exoplayer2.ui">PlayerNotificationManager.MediaDescriptionAdapter</a>&nbsp;mediaDescriptionAdapter)</pre>
<div class="block">Creates an instance.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>context</code> - The <a href="https://developer.android.com/reference/android/content/Context.html" title="class or interface in android.content" class="externalLink" target="_top"><code>Context</code></a>.</dd>
<dd><code>notificationId</code> - The id of the notification to be posted. Must be greater than 0.</dd>
<dd><code>channelId</code> - The id of the notification channel.</dd>
<dd><code>mediaDescriptionAdapter</code> - The <a href="PlayerNotificationManager.MediaDescriptionAdapter.html" title="interface in com.google.android.exoplayer2.ui"><code>PlayerNotificationManager.MediaDescriptionAdapter</code></a> to be used.</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="setChannelNameResourceId(int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setChannelNameResourceId</h4>
<pre class="methodSignature">public&nbsp;<a href="PlayerNotificationManager.Builder.html" title="class in com.google.android.exoplayer2.ui">PlayerNotificationManager.Builder</a>&nbsp;setChannelNameResourceId&#8203;(int&nbsp;channelNameResourceId)</pre>
<div class="block">The name of the channel. If set to a value other than <code>0</code>, the channel is automatically
created when <a href="#build()"><code>build()</code></a> is called. If the application has already created the
notification channel, then this method should not be called.
<p>The default is <code>0</code>.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>This builder.</dd>
</dl>
</li>
</ul>
<a id="setChannelDescriptionResourceId(int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setChannelDescriptionResourceId</h4>
<pre class="methodSignature">public&nbsp;<a href="PlayerNotificationManager.Builder.html" title="class in com.google.android.exoplayer2.ui">PlayerNotificationManager.Builder</a>&nbsp;setChannelDescriptionResourceId&#8203;(int&nbsp;channelDescriptionResourceId)</pre>
<div class="block">The description of the channel. Ignored if <a href="#setChannelNameResourceId(int)"><code>setChannelNameResourceId(int)</code></a> is not
called with a value other than <code>0</code>. If the application has already created the
notification channel, then this method should not be called.
<p>The default is <code>0</code>.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>This builder.</dd>
</dl>
</li>
</ul>
<a id="setChannelImportance(int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setChannelImportance</h4>
<pre class="methodSignature">public&nbsp;<a href="PlayerNotificationManager.Builder.html" title="class in com.google.android.exoplayer2.ui">PlayerNotificationManager.Builder</a>&nbsp;setChannelImportance&#8203;(<a href="../util/NotificationUtil.Importance.html" title="annotation in com.google.android.exoplayer2.util">@Importance</a>
int&nbsp;channelImportance)</pre>
<div class="block">The importance of the channel. Ignored if <a href="#setChannelNameResourceId(int)"><code>setChannelNameResourceId(int)</code></a> is not
called with a value other than <code>0</code>. If the application has already created the
notification channel, then this method should not be called.
<p>The default is <a href="../util/NotificationUtil.html#IMPORTANCE_LOW"><code>NotificationUtil.IMPORTANCE_LOW</code></a>.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>This builder.</dd>
</dl>
</li>
</ul>
<a id="setNotificationListener(com.google.android.exoplayer2.ui.PlayerNotificationManager.NotificationListener)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setNotificationListener</h4>
<pre class="methodSignature">public&nbsp;<a href="PlayerNotificationManager.Builder.html" title="class in com.google.android.exoplayer2.ui">PlayerNotificationManager.Builder</a>&nbsp;setNotificationListener&#8203;(<a href="PlayerNotificationManager.NotificationListener.html" title="interface in com.google.android.exoplayer2.ui">PlayerNotificationManager.NotificationListener</a>&nbsp;notificationListener)</pre>
<div class="block">The <a href="PlayerNotificationManager.NotificationListener.html" title="interface in com.google.android.exoplayer2.ui"><code>PlayerNotificationManager.NotificationListener</code></a> to be used.
<p>The default is <code>null</code>.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>This builder.</dd>
</dl>
</li>
</ul>
<a id="setCustomActionReceiver(com.google.android.exoplayer2.ui.PlayerNotificationManager.CustomActionReceiver)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setCustomActionReceiver</h4>
<pre class="methodSignature">public&nbsp;<a href="PlayerNotificationManager.Builder.html" title="class in com.google.android.exoplayer2.ui">PlayerNotificationManager.Builder</a>&nbsp;setCustomActionReceiver&#8203;(<a href="PlayerNotificationManager.CustomActionReceiver.html" title="interface in com.google.android.exoplayer2.ui">PlayerNotificationManager.CustomActionReceiver</a>&nbsp;customActionReceiver)</pre>
<div class="block">The <a href="PlayerNotificationManager.CustomActionReceiver.html" title="interface in com.google.android.exoplayer2.ui"><code>PlayerNotificationManager.CustomActionReceiver</code></a> to be used.
<p>The default is <code>null</code>.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>This builder.</dd>
</dl>
</li>
</ul>
<a id="setSmallIconResourceId(int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setSmallIconResourceId</h4>
<pre class="methodSignature">public&nbsp;<a href="PlayerNotificationManager.Builder.html" title="class in com.google.android.exoplayer2.ui">PlayerNotificationManager.Builder</a>&nbsp;setSmallIconResourceId&#8203;(int&nbsp;smallIconResourceId)</pre>
<div class="block">The resource id of the small icon of the notification shown in the status bar. See <code>NotificationCompat.Builder.setSmallIcon(int)</code>.
<p>The default is <code>R.drawable#exo_notification_small_icon</code>.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>This builder.</dd>
</dl>
</li>
</ul>
<a id="setPlayActionIconResourceId(int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setPlayActionIconResourceId</h4>
<pre class="methodSignature">public&nbsp;<a href="PlayerNotificationManager.Builder.html" title="class in com.google.android.exoplayer2.ui">PlayerNotificationManager.Builder</a>&nbsp;setPlayActionIconResourceId&#8203;(int&nbsp;playActionIconResourceId)</pre>
<div class="block">The resource id of the drawable to be used as the icon of action <a href="PlayerNotificationManager.html#ACTION_PLAY"><code>PlayerNotificationManager.ACTION_PLAY</code></a>.
<p>The default is <code>R.drawable#exo_notification_play</code>.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>This builder.</dd>
</dl>
</li>
</ul>
<a id="setPauseActionIconResourceId(int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setPauseActionIconResourceId</h4>
<pre class="methodSignature">public&nbsp;<a href="PlayerNotificationManager.Builder.html" title="class in com.google.android.exoplayer2.ui">PlayerNotificationManager.Builder</a>&nbsp;setPauseActionIconResourceId&#8203;(int&nbsp;pauseActionIconResourceId)</pre>
<div class="block">The resource id of the drawable to be used as the icon of action <a href="PlayerNotificationManager.html#ACTION_PAUSE"><code>PlayerNotificationManager.ACTION_PAUSE</code></a>.
<p>The default is <code>R.drawable#exo_notification_pause</code>.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>This builder.</dd>
</dl>
</li>
</ul>
<a id="setStopActionIconResourceId(int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setStopActionIconResourceId</h4>
<pre class="methodSignature">public&nbsp;<a href="PlayerNotificationManager.Builder.html" title="class in com.google.android.exoplayer2.ui">PlayerNotificationManager.Builder</a>&nbsp;setStopActionIconResourceId&#8203;(int&nbsp;stopActionIconResourceId)</pre>
<div class="block">The resource id of the drawable to be used as the icon of action <a href="PlayerNotificationManager.html#ACTION_STOP"><code>PlayerNotificationManager.ACTION_STOP</code></a>.
<p>The default is <code>R.drawable#exo_notification_stop</code>.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>This builder.</dd>
</dl>
</li>
</ul>
<a id="setRewindActionIconResourceId(int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setRewindActionIconResourceId</h4>
<pre class="methodSignature">public&nbsp;<a href="PlayerNotificationManager.Builder.html" title="class in com.google.android.exoplayer2.ui">PlayerNotificationManager.Builder</a>&nbsp;setRewindActionIconResourceId&#8203;(int&nbsp;rewindActionIconResourceId)</pre>
<div class="block">The resource id of the drawable to be used as the icon of action <a href="PlayerNotificationManager.html#ACTION_REWIND"><code>PlayerNotificationManager.ACTION_REWIND</code></a>.
<p>The default is <code>R.drawable#exo_notification_rewind</code>.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>This builder.</dd>
</dl>
</li>
</ul>
<a id="setFastForwardActionIconResourceId(int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setFastForwardActionIconResourceId</h4>
<pre class="methodSignature">public&nbsp;<a href="PlayerNotificationManager.Builder.html" title="class in com.google.android.exoplayer2.ui">PlayerNotificationManager.Builder</a>&nbsp;setFastForwardActionIconResourceId&#8203;(int&nbsp;fastForwardActionIconResourceId)</pre>
<div class="block">The resource id of the drawable to be used as the icon of action <a href="PlayerNotificationManager.html#ACTION_FAST_FORWARD"><code>PlayerNotificationManager.ACTION_FAST_FORWARD</code></a>.
<p>The default is <code>R.drawable#exo_notification_fastforward</code>.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>This builder.</dd>
</dl>
</li>
</ul>
<a id="setPreviousActionIconResourceId(int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setPreviousActionIconResourceId</h4>
<pre class="methodSignature">public&nbsp;<a href="PlayerNotificationManager.Builder.html" title="class in com.google.android.exoplayer2.ui">PlayerNotificationManager.Builder</a>&nbsp;setPreviousActionIconResourceId&#8203;(int&nbsp;previousActionIconResourceId)</pre>
<div class="block">The resource id of the drawable to be used as the icon of action <a href="PlayerNotificationManager.html#ACTION_PREVIOUS"><code>PlayerNotificationManager.ACTION_PREVIOUS</code></a>.
<p>The default is <code>R.drawable#exo_notification_previous</code>.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>This builder.</dd>
</dl>
</li>
</ul>
<a id="setNextActionIconResourceId(int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setNextActionIconResourceId</h4>
<pre class="methodSignature">public&nbsp;<a href="PlayerNotificationManager.Builder.html" title="class in com.google.android.exoplayer2.ui">PlayerNotificationManager.Builder</a>&nbsp;setNextActionIconResourceId&#8203;(int&nbsp;nextActionIconResourceId)</pre>
<div class="block">The resource id of the drawable to be used as the icon of action <a href="PlayerNotificationManager.html#ACTION_NEXT"><code>PlayerNotificationManager.ACTION_NEXT</code></a>.
<p>The default is <code>R.drawable#exo_notification_next</code>.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>This builder.</dd>
</dl>
</li>
</ul>
<a id="setGroup(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setGroup</h4>
<pre class="methodSignature">public&nbsp;<a href="PlayerNotificationManager.Builder.html" title="class in com.google.android.exoplayer2.ui">PlayerNotificationManager.Builder</a>&nbsp;setGroup&#8203;(<a href="https://developer.android.com/reference/java/lang/String.html" title="class or interface in java.lang" class="externalLink" target="_top">String</a>&nbsp;groupKey)</pre>
<div class="block">The key of the group the media notification should belong to.
<p>The default is <code>null</code></div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>This builder.</dd>
</dl>
</li>
</ul>
<a id="build()">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>build</h4>
<pre class="methodSignature">public&nbsp;<a href="PlayerNotificationManager.html" title="class in com.google.android.exoplayer2.ui">PlayerNotificationManager</a>&nbsp;build()</pre>
<div class="block">Builds the <a href="PlayerNotificationManager.html" title="class in com.google.android.exoplayer2.ui"><code>PlayerNotificationManager</code></a>.</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>Nested&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>