1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "//www.w3.org/TR/html4/strict.dtd">
2<HTML style="overflow:auto;">
3<HEAD>
4<meta name="generator" content="JDiff v1.1.0">
5<!-- Generated by the JDiff Javadoc doclet -->
6<!-- (http://www.jdiff.org) -->
7<meta name="description" content="JDiff is a Javadoc doclet which generates an HTML report of all the packages, classes, constructors, methods, and fields which have been removed, added or changed in any way, including their documentation, when two APIs are compared.">
8<meta name="keywords" content="diff, jdiff, javadiff, java diff, java difference, API difference, difference between two APIs, API diff, Javadoc, doclet">
9<TITLE>
10android.media.session.MediaController
11</TITLE>
12<link href="../../../../assets/android-developer-docs.css" rel="stylesheet" type="text/css" />
13<link href="../stylesheet-jdiff.css" rel="stylesheet" type="text/css" />
14<noscript>
15<style type="text/css">
16body{overflow:auto;}
17#body-content{position:relative; top:0;}
18#doc-content{overflow:visible;border-left:3px solid #666;}
19#side-nav{padding:0;}
20#side-nav .toggle-list ul {display:block;}
21#resize-packages-nav{border-bottom:3px solid #666;}
22</style>
23</noscript>
24<style type="text/css">
25</style>
26</HEAD>
27<BODY>
28<!-- Start of nav bar -->
29<a name="top"></a>
30<div id="header" style="margin-bottom:0;padding-bottom:0;">
31<div id="headerLeft">
32<a href="../../../../index.html" tabindex="-1" target="_top"><img src="../../../../assets/images/bg_logo.png" alt="Android Developers" /></a>
33</div>
34  <div id="headerRight">
35  <div id="headerLinks">
36<!-- <img src="/assets/images/icon_world.jpg" alt="" /> -->
37<span class="text">
38<!-- &nbsp;<a href="#">English</a> | -->
39<nobr><a href="//developer.android.com" target="_top">Android Developers</a> | <a href="//www.android.com" target="_top">Android.com</a></nobr>
40</span>
41</div>
42  <div class="and-diff-id" style="margin-top:6px;margin-right:8px;">
43    <table class="diffspectable">
44      <tr>
45        <td colspan="2" class="diffspechead">API Diff Specification</td>
46      </tr>
47      <tr>
48        <td class="diffspec" style="padding-top:.25em">To Level:</td>
49        <td class="diffvaluenew" style="padding-top:.25em">21</td>
50      </tr>
51      <tr>
52        <td class="diffspec">From Level:</td>
53        <td class="diffvalueold">l-preview</td>
54      </tr>
55      <tr>
56        <td class="diffspec">Generated</td>
57        <td class="diffvalue">2014.10.15 14:58</td>
58      </tr>
59    </table>
60    </div><!-- End and-diff-id -->
61  <div class="and-diff-id" style="margin-right:8px;">
62    <table class="diffspectable">
63      <tr>
64        <td class="diffspec" colspan="2"><a href="jdiff_statistics.html">Statistics</a>
65      </tr>
66    </table>
67  </div> <!-- End and-diff-id -->
68  </div> <!-- End headerRight -->
69  </div> <!-- End header -->
70<div id="body-content" xstyle="padding:12px;padding-right:18px;">
71<div id="doc-content" style="position:relative;">
72<div id="mainBodyFluid">
73<H2>
74Class android.media.session.<A HREF="../../../../reference/android/media/session/MediaController.html" target="_top"><font size="+2"><code>MediaController</code></font></A>
75</H2>
76<a NAME="constructors"></a>
77<p>
78<a NAME="Added"></a>
79<TABLE summary="Added Constructors" WIDTH="100%">
80<TR>
81  <TH VALIGN="TOP" COLSPAN=2>Added Constructors</FONT></TD>
82</TH>
83<TR BGCOLOR="#FFFFFF" CLASS="TableRowColor">
84  <TD VALIGN="TOP" WIDTH="25%">
85  <A NAME="android.media.session.MediaController.ctor_added(android.content.Context, android.media.session.MediaSession.Token)"></A>
86  <nobr><A HREF="../../../../reference/android/media/session/MediaController.html#MediaController(android.content.Context, android.media.session.MediaSession.Token)" target="_top"><code>MediaController</code></A>(<code>Context,</nobr> Token<nobr><nobr></code>)</nobr>
87  </TD>
88  <TD>&nbsp;</TD>
89</TR>
90</TABLE>
91&nbsp;
92<a NAME="methods"></a>
93<p>
94<a NAME="Removed"></a>
95<TABLE summary="Removed Methods" WIDTH="100%">
96<TR>
97  <TH VALIGN="TOP" COLSPAN=2>Removed Methods</FONT></TD>
98</TH>
99<TR BGCOLOR="#FFFFFF" CLASS="TableRowColor">
100  <TD VALIGN="TOP" WIDTH="25%">
101  <A NAME="android.media.session.MediaController.addCallback_removed(android.media.session.MediaController.Callback)"></A>
102  <nobr><code>void</code>&nbsp;addCallback(<code>Callback</code>)</nobr>
103  </TD>
104  <TD>&nbsp;</TD>
105</TR>
106<TR BGCOLOR="#FFFFFF" CLASS="TableRowColor">
107  <TD VALIGN="TOP" WIDTH="25%">
108  <A NAME="android.media.session.MediaController.addCallback_removed(android.media.session.MediaController.Callback, android.os.Handler)"></A>
109  <nobr><code>void</code>&nbsp;addCallback(<code>Callback,</nobr> Handler<nobr><nobr></code>)</nobr>
110  </TD>
111  <TD>&nbsp;</TD>
112</TR>
113<TR BGCOLOR="#FFFFFF" CLASS="TableRowColor">
114  <TD VALIGN="TOP" WIDTH="25%">
115  <A NAME="android.media.session.MediaController.fromToken_removed(android.media.session.MediaSessionToken)"></A>
116  <nobr><code>MediaController</code>&nbsp;fromToken(<code>MediaSessionToken</code>)</nobr>
117  </TD>
118  <TD>&nbsp;</TD>
119</TR>
120<TR BGCOLOR="#FFFFFF" CLASS="TableRowColor">
121  <TD VALIGN="TOP" WIDTH="25%">
122  <A NAME="android.media.session.MediaController.removeCallback_removed(android.media.session.MediaController.Callback)"></A>
123  <nobr><code>void</code>&nbsp;removeCallback(<code>Callback</code>)</nobr>
124  </TD>
125  <TD>&nbsp;</TD>
126</TR>
127<TR BGCOLOR="#FFFFFF" CLASS="TableRowColor">
128  <TD VALIGN="TOP" WIDTH="25%">
129  <A NAME="android.media.session.MediaController.sendControlCommand_removed(java.lang.String, android.os.Bundle, android.os.ResultReceiver)"></A>
130  <nobr><code>void</code>&nbsp;sendControlCommand(<code>String,</nobr> Bundle<nobr>,</nobr> ResultReceiver<nobr><nobr></code>)</nobr>
131  </TD>
132  <TD>&nbsp;</TD>
133</TR>
134</TABLE>
135&nbsp;
136<p>
137<a NAME="Added"></a>
138<TABLE summary="Added Methods" WIDTH="100%">
139<TR>
140  <TH VALIGN="TOP" COLSPAN=2>Added Methods</FONT></TD>
141</TH>
142<TR BGCOLOR="#FFFFFF" CLASS="TableRowColor">
143  <TD VALIGN="TOP" WIDTH="25%">
144  <A NAME="android.media.session.MediaController.adjustVolume_added(int, int)"></A>
145  <nobr><code>void</code>&nbsp;<A HREF="../../../../reference/android/media/session/MediaController.html#adjustVolume(int, int)" target="_top"><code>adjustVolume</code></A>(<code>int,</nobr> int<nobr><nobr></code>)</nobr>
146  </TD>
147  <TD>&nbsp;</TD>
148</TR>
149<TR BGCOLOR="#FFFFFF" CLASS="TableRowColor">
150  <TD VALIGN="TOP" WIDTH="25%">
151  <A NAME="android.media.session.MediaController.getExtras_added()"></A>
152  <nobr><code>Bundle</code>&nbsp;<A HREF="../../../../reference/android/media/session/MediaController.html#getExtras()" target="_top"><code>getExtras</code></A>()</nobr>
153  </TD>
154  <TD>&nbsp;</TD>
155</TR>
156<TR BGCOLOR="#FFFFFF" CLASS="TableRowColor">
157  <TD VALIGN="TOP" WIDTH="25%">
158  <A NAME="android.media.session.MediaController.getFlags_added()"></A>
159  <nobr><code>long</code>&nbsp;<A HREF="../../../../reference/android/media/session/MediaController.html#getFlags()" target="_top"><code>getFlags</code></A>()</nobr>
160  </TD>
161  <TD>&nbsp;</TD>
162</TR>
163<TR BGCOLOR="#FFFFFF" CLASS="TableRowColor">
164  <TD VALIGN="TOP" WIDTH="25%">
165  <A NAME="android.media.session.MediaController.getPackageName_added()"></A>
166  <nobr><code>String</code>&nbsp;<A HREF="../../../../reference/android/media/session/MediaController.html#getPackageName()" target="_top"><code>getPackageName</code></A>()</nobr>
167  </TD>
168  <TD>&nbsp;</TD>
169</TR>
170<TR BGCOLOR="#FFFFFF" CLASS="TableRowColor">
171  <TD VALIGN="TOP" WIDTH="25%">
172  <A NAME="android.media.session.MediaController.getPlaybackInfo_added()"></A>
173  <nobr><code>PlaybackInfo</code>&nbsp;<A HREF="../../../../reference/android/media/session/MediaController.html#getPlaybackInfo()" target="_top"><code>getPlaybackInfo</code></A>()</nobr>
174  </TD>
175  <TD>&nbsp;</TD>
176</TR>
177<TR BGCOLOR="#FFFFFF" CLASS="TableRowColor">
178  <TD VALIGN="TOP" WIDTH="25%">
179  <A NAME="android.media.session.MediaController.getQueue_added()"></A>
180  <nobr><code>List&lt;QueueItem&gt;</code>&nbsp;<A HREF="../../../../reference/android/media/session/MediaController.html#getQueue()" target="_top"><code>getQueue</code></A>()</nobr>
181  </TD>
182  <TD>&nbsp;</TD>
183</TR>
184<TR BGCOLOR="#FFFFFF" CLASS="TableRowColor">
185  <TD VALIGN="TOP" WIDTH="25%">
186  <A NAME="android.media.session.MediaController.getQueueTitle_added()"></A>
187  <nobr><code>CharSequence</code>&nbsp;<A HREF="../../../../reference/android/media/session/MediaController.html#getQueueTitle()" target="_top"><code>getQueueTitle</code></A>()</nobr>
188  </TD>
189  <TD>&nbsp;</TD>
190</TR>
191<TR BGCOLOR="#FFFFFF" CLASS="TableRowColor">
192  <TD VALIGN="TOP" WIDTH="25%">
193  <A NAME="android.media.session.MediaController.getSessionActivity_added()"></A>
194  <nobr><code>PendingIntent</code>&nbsp;<A HREF="../../../../reference/android/media/session/MediaController.html#getSessionActivity()" target="_top"><code>getSessionActivity</code></A>()</nobr>
195  </TD>
196  <TD>&nbsp;</TD>
197</TR>
198<TR BGCOLOR="#FFFFFF" CLASS="TableRowColor">
199  <TD VALIGN="TOP" WIDTH="25%">
200  <A NAME="android.media.session.MediaController.getSessionToken_added()"></A>
201  <nobr><code>Token</code>&nbsp;<A HREF="../../../../reference/android/media/session/MediaController.html#getSessionToken()" target="_top"><code>getSessionToken</code></A>()</nobr>
202  </TD>
203  <TD>&nbsp;</TD>
204</TR>
205<TR BGCOLOR="#FFFFFF" CLASS="TableRowColor">
206  <TD VALIGN="TOP" WIDTH="25%">
207  <A NAME="android.media.session.MediaController.registerCallback_added(android.media.session.MediaController.Callback)"></A>
208  <nobr><code>void</code>&nbsp;<A HREF="../../../../reference/android/media/session/MediaController.html#registerCallback(android.media.session.MediaController.Callback)" target="_top"><code>registerCallback</code></A>(<code>Callback</code>)</nobr>
209  </TD>
210  <TD>&nbsp;</TD>
211</TR>
212<TR BGCOLOR="#FFFFFF" CLASS="TableRowColor">
213  <TD VALIGN="TOP" WIDTH="25%">
214  <A NAME="android.media.session.MediaController.registerCallback_added(android.media.session.MediaController.Callback, android.os.Handler)"></A>
215  <nobr><code>void</code>&nbsp;<A HREF="../../../../reference/android/media/session/MediaController.html#registerCallback(android.media.session.MediaController.Callback, android.os.Handler)" target="_top"><code>registerCallback</code></A>(<code>Callback,</nobr> Handler<nobr><nobr></code>)</nobr>
216  </TD>
217  <TD>&nbsp;</TD>
218</TR>
219<TR BGCOLOR="#FFFFFF" CLASS="TableRowColor">
220  <TD VALIGN="TOP" WIDTH="25%">
221  <A NAME="android.media.session.MediaController.sendCommand_added(java.lang.String, android.os.Bundle, android.os.ResultReceiver)"></A>
222  <nobr><code>void</code>&nbsp;<A HREF="../../../../reference/android/media/session/MediaController.html#sendCommand(java.lang.String, android.os.Bundle, android.os.ResultReceiver)" target="_top"><code>sendCommand</code></A>(<code>String,</nobr> Bundle<nobr>,</nobr> ResultReceiver<nobr><nobr></code>)</nobr>
223  </TD>
224  <TD>&nbsp;</TD>
225</TR>
226<TR BGCOLOR="#FFFFFF" CLASS="TableRowColor">
227  <TD VALIGN="TOP" WIDTH="25%">
228  <A NAME="android.media.session.MediaController.setVolumeTo_added(int, int)"></A>
229  <nobr><code>void</code>&nbsp;<A HREF="../../../../reference/android/media/session/MediaController.html#setVolumeTo(int, int)" target="_top"><code>setVolumeTo</code></A>(<code>int,</nobr> int<nobr><nobr></code>)</nobr>
230  </TD>
231  <TD>&nbsp;</TD>
232</TR>
233<TR BGCOLOR="#FFFFFF" CLASS="TableRowColor">
234  <TD VALIGN="TOP" WIDTH="25%">
235  <A NAME="android.media.session.MediaController.unregisterCallback_added(android.media.session.MediaController.Callback)"></A>
236  <nobr><code>void</code>&nbsp;<A HREF="../../../../reference/android/media/session/MediaController.html#unregisterCallback(android.media.session.MediaController.Callback)" target="_top"><code>unregisterCallback</code></A>(<code>Callback</code>)</nobr>
237  </TD>
238  <TD>&nbsp;</TD>
239</TR>
240</TABLE>
241&nbsp;
242<a NAME="fields"></a>
243      </div>
244      <div id="footer">
245        <div id="copyright">
246        Except as noted, this content is licensed under
247        <a href="//creativecommons.org/licenses/by/2.5/"> Creative Commons Attribution 2.5</a>.
248        For details and restrictions, see the <a href="/license.html">Content License</a>.
249        </div>
250      <div id="footerlinks">
251      <p>
252        <a href="//www.android.com/terms.html">Site Terms of Service</a> -
253        <a href="//www.android.com/privacy.html">Privacy Policy</a> -
254        <a href="//www.android.com/branding.html">Brand Guidelines</a>
255      </p>
256    </div>
257    </div> <!-- end footer -->
258    </div><!-- end doc-content -->
259    </div> <!-- end body-content -->
260<script src="//www.google-analytics.com/ga.js" type="text/javascript">
261</script>
262<script type="text/javascript">
263  try {
264    var pageTracker = _gat._getTracker("UA-5831155-1");
265    pageTracker._setAllowAnchor(true);
266    pageTracker._initData();
267    pageTracker._trackPageview();
268  } catch(e) {}
269</script>
270</BODY>
271</HTML>
272