Home | History | Annotate | Download | only in support
      1 <!DOCTYPE html>
      2 
      3 
      4 
      5 
      6 
      7 
      8 
      9 
     10 
     11 
     12 
     13 
     14 
     15 
     16 
     17 
     18 
     19 
     20 
     21 
     22 
     23 
     24 
     25 
     26 
     27 
     28 
     29 
     30 
     31 
     32 
     33 
     34 
     35 
     36 
     37 
     38 
     39 
     40 
     41 
     42 
     43 
     44 
     45 
     46 
     47 
     48 
     49 
     50 
     51 
     52 
     53 
     54 
     55 
     56 
     57 
     58 
     59 
     60 
     61 
     62 
     63 
     64 
     65 
     66 
     67 
     68 
     69 
     70 
     71 
     72 
     73 
     74 
     75 
     76 
     77 
     78 
     79 
     80 
     81 
     82 
     83 
     84 
     85 <html>
     86 <head>
     87 
     88 
     89 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
     90 <meta name="viewport" content="width=device-width" />
     91 
     92 <link rel="shortcut icon" type="image/x-icon" href="/favicon.ico" />
     93 <title>Preview Notifications Reference | Android Developers</title>
     94 
     95 <!-- STYLESHEETS -->
     96 <link rel="stylesheet"
     97 href="//fonts.googleapis.com/css?family=Roboto+Condensed">
     98 <link rel="stylesheet" href="//fonts.googleapis.com/css?family=Roboto:light,regular,medium,thin,italic,mediumitalic,bold"
     99   title="roboto">
    100 <link href="/assets/css/default.css" rel="stylesheet" type="text/css">
    101 
    102 
    103 
    104 <!-- JAVASCRIPT -->
    105 <script src="//www.google.com/jsapi" type="text/javascript"></script>
    106 <script src="/assets/js/android_3p-bundle.js" type="text/javascript"></script>
    107 <script type="text/javascript">
    108   var toRoot = "/";
    109   var metaTags = [];
    110   var devsite = false;
    111 </script>
    112 <script src="/assets/js/docs.js" type="text/javascript"></script>
    113 
    114 <script type="text/javascript">
    115   var _gaq = _gaq || [];
    116   _gaq.push(['_setAccount', 'UA-5831155-1']);
    117   _gaq.push(['_trackPageview']);
    118 
    119   (function() {
    120     var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    121     ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    122     var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
    123   })();
    124 </script>
    125 </head>
    126 
    127 
    128 <body class="gc-documentation 
    129   preview">
    130   <div id="doc-api-level" class="" style="display:none"></div>
    131   <a name="top"></a>
    132 
    133 
    134   
    135 <a name="top"></a>
    136 
    137 <!-- Header -->
    138 <div id="header-wrapper">
    139   <div id="header">
    140     <div class="wrap" id="header-wrap">
    141       <div class="col_3 logo wear-logo">
    142         <a href="/wear/index.html">
    143           <img src="/wear/images/android-wear.png" height="16" alt="Android Wear" />
    144         </a>
    145       </div>
    146       <div class="col-8" style="margin:0"><h1 style="margin:1px 0 0 20px;padding:0;line-height:16px;
    147 color:#666;font-weight:100;font-size:24px;">Developer Preview</h1></div>
    148 
    149       
    150       
    151 <div class="menu-container">
    152   <div class="moremenu">
    153     <div id="more-btn"></div>
    154   </div>
    155   <div class="morehover" id="moremenu">
    156     <div class="top"></div>
    157     <div class="mid">
    158       <div class="header">Links</div>
    159       <ul>
    160         <li><a href="https://play.google.com/apps/publish/" target="_googleplay">Google Play Developer Console</a></li>
    161         <li><a href="http://android-developers.blogspot.com/">Android Developers Blog</a></li>
    162         <li><a href="/about/index.html">About Android</a></li>
    163       </ul>
    164       <div class="header">Android Sites</div>
    165       <ul>
    166         <li><a href="http://www.android.com">Android.com</a></li>
    167         <li class="active"><a>Android Developers</a></li>
    168         <li><a href="http://source.android.com">Android Open Source Project</a></li>
    169       </ul>
    170 
    171       
    172       
    173         <div class="header">Language</div>
    174           <div id="language" class="locales">
    175             <select name="language" onChange="changeLangPref(this.value, true)">
    176                 <option value="en">English</option>
    177                 <option value="es">Espaol</option>
    178                 <option value="ja"></option>
    179                 <option value="ko"></option>
    180                 <option value="ru"></option>
    181                 <option value="zh-cn"> ()</option>
    182                 <option value="zh-tw"> ()</option>
    183             </select>
    184           </div>
    185         <script type="text/javascript">
    186           <!--
    187           loadLangPref();
    188             //-->
    189         </script>
    190       
    191       
    192       <br class="clearfix" />
    193     </div><!-- end 'mid' -->
    194     <div class="bottom"></div>
    195   </div><!-- end 'moremenu' -->
    196 
    197   <div class="search" id="search-container">
    198     <div class="search-inner">
    199       <div id="search-btn"></div>
    200       <div class="left"></div>
    201       <form onsubmit="return submit_search()">
    202         <input id="search_autocomplete" type="text" value="" autocomplete="off" name="q"
    203           onfocus="search_focus_changed(this, true)" onblur="search_focus_changed(this, false)"
    204           onkeydown="return search_changed(event, true, '/')"
    205           onkeyup="return search_changed(event, false, '/')" />
    206       </form>
    207       <div class="right"></div>
    208       <a class="close hide">close</a>
    209       <div class="left"></div>
    210       <div class="right"></div>
    211     </div><!-- end search-inner -->
    212   </div><!-- end search-container -->
    213 
    214   <div class="search_filtered_wrapper reference">
    215     <div class="suggest-card reference no-display">
    216       <ul class="search_filtered">
    217       </ul>
    218     </div>
    219   </div>
    220 
    221   <div class="search_filtered_wrapper docs">
    222     <div class="suggest-card dummy no-display">&nbsp;</div>
    223     <div class="suggest-card develop no-display">
    224       <ul class="search_filtered">
    225       </ul>
    226       <div class="child-card guides no-display">
    227       </div>
    228       <div class="child-card training no-display">
    229       </div>
    230       <div class="child-card samples no-display">
    231       </div>
    232     </div>
    233     <div class="suggest-card design no-display">
    234       <ul class="search_filtered">
    235       </ul>
    236     </div>
    237     <div class="suggest-card distribute no-display">
    238       <ul class="search_filtered">
    239       </ul>
    240     </div>
    241   </div>
    242 </div><!-- end menu-container (search and menu widget) -->
    243 
    244 
    245     </div><!-- end header-wrap -->
    246   </div><!-- /Header -->
    247 
    248 
    249   <div id="searchResults" class="wrap" style="display:none;">
    250           <h2 id="searchTitle">Results</h2>
    251           <div id="leftSearchControl" class="search-control">Loading...</div>
    252   </div>
    253 </div> <!--end header-wrapper -->
    254 
    255 <div id="sticky-header">
    256   <div>
    257     <a class="logo" href="#top"></a>
    258     <a class="top" href="#top"></a>
    259     <ul class="breadcrumb">
    260       
    261       <li class="current">Preview Notifications Reference</li>
    262     </ul>
    263   </div>
    264 </div>
    265 
    266   
    267 
    268 
    269   <div class="wrap clearfix" id="body-content">
    270     <div class="col-4" id="side-nav" itemscope itemtype="http://schema.org/SiteNavigationElement">
    271       <div id="devdoc-nav" class="scroll-pane">
    272 
    273 <ul id="nav">
    274 
    275   <li class="nav-section">
    276     <div class="nav-section-header empty"><a href="/wear/preview/start.html">Get Started
    277       </a></div>
    278   </li>
    279 
    280   <li class="nav-section">
    281     <div class="nav-section-header empty"><a href="/wear/design/user-interface.html">UI Overview
    282       </a></div>
    283   </li>
    284 
    285   <li class="nav-section">
    286     <div class="nav-section-header empty"><a href="/wear/design/index.html">Design Principles
    287       </a></div>
    288   </li>
    289 
    290   <li class="nav-section">
    291     <div class="nav-section-header empty"><a href="/wear/notifications/creating.html">Creating Notifications for Android Wear
    292       </a></div>
    293   </li>
    294 
    295   <li class="nav-section">
    296     <div class="nav-section-header empty"><a href="/wear/notifications/remote-input.html">Receiving Voice Input from a Notification
    297       </a></div>
    298   </li>
    299 
    300   <li class="nav-section">
    301     <div class="nav-section-header empty"><a href="/wear/notifications/pages.html">Adding Pages to a Notification
    302       </a></div>
    303   </li>
    304 
    305   <li class="nav-section">
    306     <div class="nav-section-header empty"><a href="/wear/notifications/stacks.html">Stacking Notifications
    307       </a></div>
    308   </li>
    309 
    310   <li class="nav-section">
    311     <div class="nav-section-header"><a href="/reference/android/preview/support/package-summary.html">Notification Reference</a></div>
    312     <ul class="tree-list-children">
    313 <li class="nav-section">
    314 <div class="nav-section-header-ref"><span class="tree-list-subtitle package" title="android.preview.support.v4.app">android.preview.support.v4.app</span></div>
    315   <ul>
    316 <li><a href="/reference/android/preview/support/v4/app/NotificationManagerCompat.html">NotificationManagerCompat</a></li>
    317   </ul>
    318 </li>
    319 
    320 <li class="nav-section">
    321 <div class="nav-section-header-ref"><span class="tree-list-subtitle package" title="android.preview.support.wearable.notifications">android.preview.support.wearable.notifications</span></div>
    322 <ul>
    323 
    324 <li><a href="/reference/android/preview/support/wearable/notifications/RemoteInput.html">RemoteInput</a></li>
    325 <li><a href="/reference/android/preview/support/wearable/notifications/RemoteInput.Builder.html" >RemoteInput.Builder</a></li>
    326 
    327 <li><a href="/reference/android/preview/support/wearable/notifications/WearableNotifications.html">WearableNotifications</a></li>
    328 
    329 <li><a href="/reference/android/preview/support/wearable/notifications/WearableNotifications.Action.html">WearableNotifications.Action</a></li>
    330 
    331 <li><a href="/reference/android/preview/support/wearable/notifications/WearableNotifications.Action.Builder.html">WearableNotifications.Action.Builder</a></li>
    332 
    333 <li><a href="/reference/android/preview/support/wearable/notifications/WearableNotifications.Builder.html">WearableNotifications.Builder</a></li>
    334 	</ul>
    335   </li>
    336 </ul>
    337 </li>
    338 
    339 
    340 
    341   <li class="nav-section">
    342     <div class="nav-section-header empty"><a href="/wear/license.html">License Agreement</a></div>
    343   </li>
    344 
    345 
    346 </ul>
    347 
    348 
    349 
    350       </div>
    351     </div> <!-- end side-nav -->
    352     <script>
    353       $(document).ready(function() {
    354         scrollIntoView("devdoc-nav");
    355         });
    356     </script>
    357 
    358 
    359 
    360 
    361 <div class="col-12" id="doc-col">
    362 
    363 <div id="api-info-block">
    364 <div class="api-level">
    365   
    366   
    367   
    368 
    369 </div>
    370 </div>
    371 
    372 
    373 <div id="naMessage"></div>
    374 
    375 <div id="jd-content" class="api apilevel-">
    376 
    377 
    378 
    379 
    380 
    381 
    382     <h2>android.preview.support.v4.app</h2>
    383     <div class="jd-sumtable">
    384     
    385   <table class="jd-sumtable-expando">
    386         <tr class=" api apilevel-" >
    387               <td class="jd-linkcol"><a href="/reference/android/preview/support/v4/app/NotificationManagerCompat.html">NotificationManagerCompat</a></td>
    388               <td class="jd-descrcol" width="100%">Compatibility library for NotificationManager with fallbacks for older platforms.&nbsp;</td>
    389           </tr>
    390   </table>
    391     </div>
    392 
    393 
    394 
    395 
    396     <h2>android.preview.support.wearable.notifications</h2>
    397     <div class="jd-sumtable">
    398     
    399   <table class="jd-sumtable-expando">
    400         <tr class="alt-color api apilevel-" >
    401               <td class="jd-linkcol"><a href="/reference/android/preview/support/wearable/notifications/RemoteInput.html">RemoteInput</a></td>
    402               <td class="jd-descrcol" width="100%">A RemoteInput specifies a response to be collected from the user as part of an intent being
    403  sent.&nbsp;</td>
    404           </tr>
    405         <tr class=" api apilevel-" >
    406               <td class="jd-linkcol"><a href="/reference/android/preview/support/wearable/notifications/RemoteInput.Builder.html">RemoteInput.Builder</a></td>
    407               <td class="jd-descrcol" width="100%">Builder class for <code><a href="/reference/android/preview/support/wearable/notifications/RemoteInput.html">RemoteInput</a></code> objects.&nbsp;</td>
    408           </tr>
    409         <tr class="alt-color api apilevel-" >
    410               <td class="jd-linkcol"><a href="/reference/android/preview/support/wearable/notifications/WearableNotifications.html">WearableNotifications</a></td>
    411               <td class="jd-descrcol" width="100%">Helper providing extensions to android notifications for use with wearable devices.&nbsp;</td>
    412           </tr>
    413         <tr class=" api apilevel-" >
    414               <td class="jd-linkcol"><a href="/reference/android/preview/support/wearable/notifications/WearableNotifications.Action.html">WearableNotifications.Action</a></td>
    415               <td class="jd-descrcol" width="100%">Subclass of <code><a href="/reference/android/support/v4/app/NotificationCompat.Action.html">NotificationCompat.Action</a></code> which adds support for additional
    416  wearable extensions.&nbsp;</td>
    417           </tr>
    418         <tr class="alt-color api apilevel-" >
    419               <td class="jd-linkcol"><a href="/reference/android/preview/support/wearable/notifications/WearableNotifications.Action.Builder.html">WearableNotifications.Action.Builder</a></td>
    420               <td class="jd-descrcol" width="100%">Builder class for <code><a href="/reference/android/preview/support/wearable/notifications/WearableNotifications.Action.html">WearableNotifications.Action</a></code> objects.&nbsp;</td>
    421           </tr>
    422         <tr class=" api apilevel-" >
    423               <td class="jd-linkcol"><a href="/reference/android/preview/support/wearable/notifications/WearableNotifications.Builder.html">WearableNotifications.Builder</a></td>
    424               <td class="jd-descrcol" width="100%">Builder object that wraps a <code><a href="/reference/android/support/v4/app/NotificationCompat.Builder.html">NotificationCompat.Builder</a></code> to provide
    425  methods for adding wearable extensions to a notification.&nbsp;</td>
    426           </tr>
    427   </table>
    428     </div>
    429   
    430 
    431 
    432   
    433 
    434 
    435   
    436 
    437 
    438   
    439 
    440 
    441 <div id="footer" class="wrap" >
    442         
    443 
    444   <div id="copyright">
    445     
    446   Except as noted, this content is licensed under <a
    447   href="http://www.apache.org/licenses/LICENSE-2.0">Apache 2.0</a>. 
    448   For details and restrictions, see the <a href="/license.html">
    449   Content License</a>.
    450   </div>
    451   <div id="build_info">
    452     
    453     Android &nbsp;r &mdash; 
    454 <script src="/timestamp.js" type="text/javascript"></script>
    455 <script>document.write(BUILD_TIMESTAMP)</script>
    456 
    457   </div>
    458 
    459 
    460   <div id="footerlinks">
    461     
    462   <p>
    463     <a href="/about/index.html">About Android</a>&nbsp;&nbsp;|&nbsp;
    464     <a href="/legal.html">Legal</a>&nbsp;&nbsp;|&nbsp;
    465     <a href="/support.html">Support</a>
    466   </p>
    467   </div>
    468 
    469 </div> <!-- end footer -->
    470 </div><!-- end jd-content -->
    471 </div><!-- doc-content -->
    472 
    473 </div> <!-- end body-content --> 
    474 
    475 
    476 
    477 
    478 
    479 
    480 </body>
    481 </html>
    482