Home | History | Annotate | Download | only in changes
      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>
     10 android.media.session.MediaSession
     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">
     16 body{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>
     74 Class android.media.session.<A HREF="../../../../reference/android/media/session/MediaSession.html" target="_top"><font size="+2"><code>MediaSession</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.MediaSession.ctor_added(android.content.Context, java.lang.String)"></A>
     86   <nobr><A HREF="../../../../reference/android/media/session/MediaSession.html#MediaSession(android.content.Context, java.lang.String)" target="_top"><code>MediaSession</code></A>(<code>Context,</nobr> String<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.MediaSession.addCallback_removed(android.media.session.MediaSession.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.MediaSession.addCallback_removed(android.media.session.MediaSession.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.MediaSession.addTransportControlsCallback_removed(android.media.session.MediaSession.TransportControlsCallback)"></A>
    116   <nobr><code>void</code>&nbsp;addTransportControlsCallback(<code>TransportControlsCallback</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.MediaSession.addTransportControlsCallback_removed(android.media.session.MediaSession.TransportControlsCallback, android.os.Handler)"></A>
    123   <nobr><code>void</code>&nbsp;addTransportControlsCallback(<code>TransportControlsCallback,</nobr> Handler<nobr><nobr></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.MediaSession.removeCallback_removed(android.media.session.MediaSession.Callback)"></A>
    130   <nobr><code>void</code>&nbsp;removeCallback(<code>Callback</code>)</nobr>
    131   </TD>
    132   <TD>&nbsp;</TD>
    133 </TR>
    134 <TR BGCOLOR="#FFFFFF" CLASS="TableRowColor">
    135   <TD VALIGN="TOP" WIDTH="25%">
    136   <A NAME="android.media.session.MediaSession.removeTransportControlsCallback_removed(android.media.session.MediaSession.TransportControlsCallback)"></A>
    137   <nobr><code>void</code>&nbsp;removeTransportControlsCallback(<code>TransportControlsCallback</code>)</nobr>
    138   </TD>
    139   <TD>&nbsp;</TD>
    140 </TR>
    141 <TR BGCOLOR="#FFFFFF" CLASS="TableRowColor">
    142   <TD VALIGN="TOP" WIDTH="25%">
    143   <A NAME="android.media.session.MediaSession.setLaunchPendingIntent_removed(android.app.PendingIntent)"></A>
    144   <nobr><code>void</code>&nbsp;setLaunchPendingIntent(<code>PendingIntent</code>)</nobr>
    145   </TD>
    146   <TD>&nbsp;</TD>
    147 </TR>
    148 </TABLE>
    149 &nbsp;
    150 <p>
    151 <a NAME="Added"></a>
    152 <TABLE summary="Added Methods" WIDTH="100%">
    153 <TR>
    154   <TH VALIGN="TOP" COLSPAN=2>Added Methods</FONT></TD>
    155 </TH>
    156 <TR BGCOLOR="#FFFFFF" CLASS="TableRowColor">
    157   <TD VALIGN="TOP" WIDTH="25%">
    158   <A NAME="android.media.session.MediaSession.getController_added()"></A>
    159   <nobr><code>MediaController</code>&nbsp;<A HREF="../../../../reference/android/media/session/MediaSession.html#getController()" target="_top"><code>getController</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.MediaSession.setCallback_added(android.media.session.MediaSession.Callback)"></A>
    166   <nobr><code>void</code>&nbsp;<A HREF="../../../../reference/android/media/session/MediaSession.html#setCallback(android.media.session.MediaSession.Callback)" target="_top"><code>setCallback</code></A>(<code>Callback</code>)</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.MediaSession.setCallback_added(android.media.session.MediaSession.Callback, android.os.Handler)"></A>
    173   <nobr><code>void</code>&nbsp;<A HREF="../../../../reference/android/media/session/MediaSession.html#setCallback(android.media.session.MediaSession.Callback, android.os.Handler)" target="_top"><code>setCallback</code></A>(<code>Callback,</nobr> Handler<nobr><nobr></code>)</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.MediaSession.setExtras_added(android.os.Bundle)"></A>
    180   <nobr><code>void</code>&nbsp;<A HREF="../../../../reference/android/media/session/MediaSession.html#setExtras(android.os.Bundle)" target="_top"><code>setExtras</code></A>(<code>Bundle</code>)</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.MediaSession.setMediaButtonReceiver_added(android.app.PendingIntent)"></A>
    187   <nobr><code>void</code>&nbsp;<A HREF="../../../../reference/android/media/session/MediaSession.html#setMediaButtonReceiver(android.app.PendingIntent)" target="_top"><code>setMediaButtonReceiver</code></A>(<code>PendingIntent</code>)</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.MediaSession.setQueue_added(java.util.List<android.media.session.MediaSession.QueueItem>)"></A>
    194   <nobr><code>void</code>&nbsp;<A HREF="../../../../reference/android/media/session/MediaSession.html#setQueue(java.util.List<android.media.session.MediaSession.QueueItem>)" target="_top"><code>setQueue</code></A>(<code>List&lt;QueueItem&gt;</code>)</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.MediaSession.setQueueTitle_added(java.lang.CharSequence)"></A>
    201   <nobr><code>void</code>&nbsp;<A HREF="../../../../reference/android/media/session/MediaSession.html#setQueueTitle(java.lang.CharSequence)" target="_top"><code>setQueueTitle</code></A>(<code>CharSequence</code>)</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.MediaSession.setSessionActivity_added(android.app.PendingIntent)"></A>
    208   <nobr><code>void</code>&nbsp;<A HREF="../../../../reference/android/media/session/MediaSession.html#setSessionActivity(android.app.PendingIntent)" target="_top"><code>setSessionActivity</code></A>(<code>PendingIntent</code>)</nobr>
    209   </TD>
    210   <TD>&nbsp;</TD>
    211 </TR>
    212 </TABLE>
    213 &nbsp;
    214 <p>
    215 <a NAME="Changed"></a>
    216 <TABLE summary="Changed Methods" WIDTH="100%">
    217 <TR>
    218   <TH VALIGN="TOP" COLSPAN=3>Changed Methods</FONT></TD>
    219 </TH>
    220 <TR BGCOLOR="#FFFFFF" CLASS="TableRowColor">
    221   <TD VALIGN="TOP" WIDTH="25%">
    222   <A NAME="android.media.session.MediaSession.getSessionToken_changed()"></A>
    223   <nobr><code>Token</code>&nbsp;<A HREF="../../../../reference/android/media/session/MediaSession.html#getSessionToken()" target="_top"><code>getSessionToken</code></A>()  </nobr>
    224   </TD>
    225   <TD VALIGN="TOP" WIDTH="30%">
    226 Change in return type from <code>MediaSessionToken</code> to <code>Token</code>.<br>
    227   </TD>
    228   <TD>&nbsp;</TD>
    229 </TR>
    230 <TR BGCOLOR="#FFFFFF" CLASS="TableRowColor">
    231   <TD VALIGN="TOP" WIDTH="25%">
    232   <A NAME="android.media.session.MediaSession.setPlaybackToLocal_changed(android.media.AudioAttributes)"></A>
    233   <nobr><code>void</code>&nbsp;<A HREF="../../../../reference/android/media/session/MediaSession.html#setPlaybackToLocal(android.media.AudioAttributes)" target="_top"><code>setPlaybackToLocal</code></A>(<code>AudioAttributes</code>)  </nobr>
    234   </TD>
    235   <TD VALIGN="TOP" WIDTH="30%">
    236 Change in signature from <code>int</code> to <code>AudioAttributes</code>.<br>
    237   </TD>
    238   <TD>&nbsp;</TD>
    239 </TR>
    240 <TR BGCOLOR="#FFFFFF" CLASS="TableRowColor">
    241   <TD VALIGN="TOP" WIDTH="25%">
    242   <A NAME="android.media.session.MediaSession.setPlaybackToRemote_changed(android.media.VolumeProvider)"></A>
    243   <nobr><code>void</code>&nbsp;<A HREF="../../../../reference/android/media/session/MediaSession.html#setPlaybackToRemote(android.media.VolumeProvider)" target="_top"><code>setPlaybackToRemote</code></A>(<code>VolumeProvider</code>)  </nobr>
    244   </TD>
    245   <TD VALIGN="TOP" WIDTH="30%">
    246 Change in signature from <code>RemoteVolumeProvider</code> to <code>VolumeProvider</code>.<br>
    247   </TD>
    248   <TD>&nbsp;</TD>
    249 </TR>
    250 </TABLE>
    251 &nbsp;
    252 <a NAME="fields"></a>
    253       </div>	
    254       <div id="footer">
    255         <div id="copyright">
    256         Except as noted, this content is licensed under 
    257         <a href="//creativecommons.org/licenses/by/2.5/"> Creative Commons Attribution 2.5</a>.
    258         For details and restrictions, see the <a href="/license.html">Content License</a>.
    259         </div>
    260       <div id="footerlinks">
    261       <p>
    262         <a href="//www.android.com/terms.html">Site Terms of Service</a> -
    263         <a href="//www.android.com/privacy.html">Privacy Policy</a> -
    264         <a href="//www.android.com/branding.html">Brand Guidelines</a>
    265       </p>
    266     </div>
    267     </div> <!-- end footer -->
    268     </div><!-- end doc-content -->
    269     </div> <!-- end body-content --> 
    270 <script src="//www.google-analytics.com/ga.js" type="text/javascript">
    271 </script>
    272 <script type="text/javascript">
    273   try {
    274     var pageTracker = _gat._getTracker("UA-5831155-1");
    275     pageTracker._setAllowAnchor(true);
    276     pageTracker._initData();
    277     pageTracker._trackPageview();
    278   } catch(e) {}
    279 </script>
    280 </BODY>
    281 </HTML>
    282