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 86 87<html> 88<head> 89 90 91<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 92<meta name="viewport" content="width=device-width" /> 93 94<link rel="shortcut icon" type="image/x-icon" href="/favicon.ico" /> 95<title>com.google.android.gms.wearable | Android Developers</title> 96 97<!-- STYLESHEETS --> 98<link rel="stylesheet" 99href="//fonts.googleapis.com/css?family=Roboto+Condensed"> 100<link rel="stylesheet" href="//fonts.googleapis.com/css?family=Roboto:light,regular,medium,thin,italic,mediumitalic,bold" 101 title="roboto"> 102<link href="/assets/css/default.css?v=2" rel="stylesheet" type="text/css"> 103 104 105 106<!-- JAVASCRIPT --> 107<script src="//www.google.com/jsapi" type="text/javascript"></script> 108<script src="/assets/js/android_3p-bundle.js" type="text/javascript"></script> 109<script type="text/javascript"> 110 var toRoot = "/"; 111 var metaTags = []; 112 var devsite = false; 113</script> 114<script src="/assets/js/docs.js?v=2" type="text/javascript"></script> 115 116<script> 117 (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ 118 (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), 119 m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) 120 })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); 121 122 ga('create', 'UA-5831155-1', 'android.com'); 123 ga('create', 'UA-49880327-2', 'android.com', {'name': 'universal'}); // New tracker); 124 ga('send', 'pageview'); 125 ga('universal.send', 'pageview'); // Send page view for new tracker. 126</script> 127 128</head> 129 130 131<body class="gc-documentation google 132 develop"> 133 <div id="doc-api-level" class="" style="display:none"></div> 134 <a name="top"></a> 135 136 137<a name="top"></a> 138 139 <!-- Header --> 140 <div id="header-wrapper"> 141 <div id="header"> 142 <div class="wrap" id="header-wrap"> 143 <div class="col-3 logo"> 144 <a href="/index.html"> 145 <img src="/assets/images/dac_logo.png" 146 srcset="/assets/images/dac_logo@2x.png 2x" 147 width="123" height="25" alt="Android Developers" /> 148 </a> 149 <div class="btn-quicknav" id="btn-quicknav"> 150 <a href="#" class="arrow-inactive">Quicknav</a> 151 <a href="#" class="arrow-active">Quicknav</a> 152 </div> 153 </div> 154 <ul class="nav-x col-9"> 155 <li class="design"> 156 <a href="/design/index.html" 157 zh-tw-lang="設計" 158 zh-cn-lang="设计" 159 ru-lang="Проектирование" 160 ko-lang="디자인" 161 ja-lang="設計" 162 es-lang="Diseñar" 163 >Design</a></li> 164 <li class="develop"><a href="/develop/index.html" 165 zh-tw-lang="開發" 166 zh-cn-lang="开发" 167 ru-lang="Разработка" 168 ko-lang="개발" 169 ja-lang="開発" 170 es-lang="Desarrollar" 171 >Develop</a></li> 172 <li class="distribute last"><a href="/distribute/index.html" 173 zh-tw-lang="發佈" 174 zh-cn-lang="分发" 175 ru-lang="Распространение" 176 ko-lang="배포" 177 ja-lang="配布" 178 es-lang="Distribuir" 179 >Distribute</a></li> 180 </ul> 181 182 183 184 185<div class="menu-container"> 186 <div class="moremenu"> 187 <div id="more-btn"></div> 188 </div> 189 <div class="morehover" id="moremenu"> 190 <div class="top"></div> 191 <div class="mid"> 192 <div class="header">Links</div> 193 <ul> 194 <li><a href="https://play.google.com/apps/publish/" target="_googleplay">Google Play Developer Console</a></li> 195 <li><a href="http://android-developers.blogspot.com/">Android Developers Blog</a></li> 196 <li><a href="/about/index.html">About Android</a></li> 197 </ul> 198 <div class="header">Android Sites</div> 199 <ul> 200 <li><a href="http://www.android.com">Android.com</a></li> 201 <li class="active"><a>Android Developers</a></li> 202 <li><a href="http://source.android.com">Android Open Source Project</a></li> 203 </ul> 204 205 206 207 <div class="header">Language</div> 208 <div id="language" class="locales"> 209 <select name="language" onChange="changeLangPref(this.value, true)"> 210 <option value="en">English</option> 211 <option value="es">Español</option> 212 <option value="ja">日本語</option> 213 <option value="ko">한국어</option> 214 <option value="ru">Русский</option> 215 <option value="zh-cn">中文 (中国)</option> 216 <option value="zh-tw">中文 (台灣)</option> 217 </select> 218 </div> 219 <script type="text/javascript"> 220 <!-- 221 loadLangPref(); 222 //--> 223 </script> 224 225 226 <br class="clearfix" /> 227 </div><!-- end 'mid' --> 228 <div class="bottom"></div> 229 </div><!-- end 'moremenu' --> 230 231 <div class="search" id="search-container"> 232 <div class="search-inner"> 233 <div id="search-btn"></div> 234 <div class="left"></div> 235 <form onsubmit="return submit_search()"> 236 <input id="search_autocomplete" type="text" value="" autocomplete="off" name="q" 237 onfocus="search_focus_changed(this, true)" onblur="search_focus_changed(this, false)" 238 onkeydown="return search_changed(event, true, '/')" 239 onkeyup="return search_changed(event, false, '/')" /> 240 </form> 241 <div class="right"></div> 242 <a class="close hide">close</a> 243 <div class="left"></div> 244 <div class="right"></div> 245 </div><!-- end search-inner --> 246 </div><!-- end search-container --> 247 248 <div class="search_filtered_wrapper reference"> 249 <div class="suggest-card reference no-display"> 250 <ul class="search_filtered"> 251 </ul> 252 </div> 253 </div> 254 255 <div class="search_filtered_wrapper docs"> 256 <div class="suggest-card dummy no-display"> </div> 257 <div class="suggest-card develop no-display"> 258 <ul class="search_filtered"> 259 </ul> 260 <div class="child-card guides no-display"> 261 </div> 262 <div class="child-card training no-display"> 263 </div> 264 <div class="child-card samples no-display"> 265 </div> 266 </div> 267 <div class="suggest-card design no-display"> 268 <ul class="search_filtered"> 269 </ul> 270 </div> 271 <div class="suggest-card distribute no-display"> 272 <ul class="search_filtered"> 273 </ul> 274 </div> 275 </div> 276</div><!-- end menu-container (search and menu widget) --> 277 278 279 280 <!-- Expanded quicknav --> 281 <div id="quicknav" class="col-13"> 282 <ul> 283 <li class="about"> 284 <ul> 285 <li><a href="/about/index.html">About</a></li> 286 <li><a href="/wear/index.html">Wear</a></li> 287 <li><a href="/tv/index.html">TV</a></li> 288 <li><a href="/auto/index.html">Auto</a></li> 289 </ul> 290 </li> 291 <li class="design"> 292 <ul> 293 <li><a href="/design/index.html">Get Started</a></li> 294 <li><a href="/design/devices.html">Devices</a></li> 295 <li><a href="/design/style/index.html">Style</a></li> 296 <li><a href="/design/patterns/index.html">Patterns</a></li> 297 <li><a href="/design/building-blocks/index.html">Building Blocks</a></li> 298 <li><a href="/design/downloads/index.html">Downloads</a></li> 299 <li><a href="/design/videos/index.html">Videos</a></li> 300 </ul> 301 </li> 302 <li class="develop"> 303 <ul> 304 <li><a href="/training/index.html" 305 zh-tw-lang="訓練課程" 306 zh-cn-lang="培训" 307 ru-lang="Курсы" 308 ko-lang="교육" 309 ja-lang="トレーニング" 310 es-lang="Capacitación" 311 >Training</a></li> 312 <li><a href="/guide/index.html" 313 zh-tw-lang="API 指南" 314 zh-cn-lang="API 指南" 315 ru-lang="Руководства по API" 316 ko-lang="API 가이드" 317 ja-lang="API ガイド" 318 es-lang="Guías de la API" 319 >API Guides</a></li> 320 <li><a href="/reference/packages.html" 321 zh-tw-lang="參考資源" 322 zh-cn-lang="参考" 323 ru-lang="Справочник" 324 ko-lang="참조문서" 325 ja-lang="リファレンス" 326 es-lang="Referencia" 327 >Reference</a></li> 328 <li><a href="/sdk/index.html" 329 zh-tw-lang="相關工具" 330 zh-cn-lang="工具" 331 ru-lang="Инструменты" 332 ko-lang="도구" 333 ja-lang="ツール" 334 es-lang="Herramientas" 335 >Tools</a> 336 </li> 337 <li><a href="/google/index.html">Google Services</a> 338 </li> 339 340 <li><a href="/samples/index.html">Samples</a> 341 </li> 342 343 </ul> 344 </li> 345 <li class="distribute last"> 346 <ul> 347 <li><a href="/distribute/googleplay/index.html">Google Play</a></li> 348 <li><a href="/distribute/essentials/index.html">Essentials</a></li> 349 <li><a href="/distribute/users/index.html">Get Users</a></li> 350 <li><a href="/distribute/engage/index.html">Engage & Retain</a></li> 351 <li><a href="/distribute/monetize/index.html">Monetize</a></li> 352 <li><a href="/distribute/tools/index.html">Tools & Reference</a></li> 353 <li><a href="/distribute/stories/index.html">Developer Stories</a></li> 354 </ul> 355 </li> 356 </ul> 357 </div><!-- /Expanded quicknav --> 358 </div><!-- end header-wrap.wrap --> 359 </div><!-- end header --> 360 361 362 <!-- Secondary x-nav --> 363 <div id="nav-x"> 364 <div class="wrap"> 365 <ul class="nav-x col-9 develop" style="width:100%"> 366 <li class="training"><a href="/training/index.html" 367 zh-tw-lang="訓練課程" 368 zh-cn-lang="培训" 369 ru-lang="Курсы" 370 ko-lang="교육" 371 ja-lang="トレーニング" 372 es-lang="Capacitación" 373 >Training</a></li> 374 <li class="guide"><a href="/guide/index.html" 375 zh-tw-lang="API 指南" 376 zh-cn-lang="API 指南" 377 ru-lang="Руководства по API" 378 ko-lang="API 가이드" 379 ja-lang="API ガイド" 380 es-lang="Guías de la API" 381 >API Guides</a></li> 382 <li class="reference"><a href="/reference/packages.html" 383 zh-tw-lang="參考資源" 384 zh-cn-lang="参考" 385 ru-lang="Справочник" 386 ko-lang="참조문서" 387 ja-lang="リファレンス" 388 es-lang="Referencia" 389 >Reference</a></li> 390 <li class="tools"><a href="/sdk/index.html" 391 zh-tw-lang="相關工具" 392 zh-cn-lang="工具" 393 ru-lang="Инструменты" 394 ko-lang="도구" 395 ja-lang="ツール" 396 es-lang="Herramientas" 397 >Tools</a></li> 398 <li class="google"><a href="/google/index.html" 399 >Google Services</a> 400 </li> 401 402 <li class="samples"><a href="/samples/index.html" 403 >Samples</a> 404 </li> 405 406 </ul> 407 </div> 408 </div> 409 <!-- /Sendondary x-nav DEVELOP --> 410 411 412 413 <div id="searchResults" class="wrap" style="display:none;"> 414 <h2 id="searchTitle">Results</h2> 415 <div id="leftSearchControl" class="search-control">Loading...</div> 416 </div> 417 </div> <!--end header-wrapper --> 418 419 <div id="sticky-header"> 420 <div> 421 <a class="logo" href="#top"></a> 422 <a class="top" href="#top"></a> 423 <ul class="breadcrumb"> 424 425 <li class="current">com.google.android.gms.wearable</li> 426 </ul> 427 </div> 428 </div> 429 430 431 432 433 434 435 <div class="wrap clearfix" id="body-content"> 436 <div class="col-4" id="side-nav" itemscope itemtype="http://schema.org/SiteNavigationElement"> 437 <div id="devdoc-nav" class="scroll-pane"> 438 439 440 441<ul id="nav"> 442 443 <li class="nav-section"> 444 <div class="nav-section-header empty"><a href="/google/index.html"> 445 <span class="en">Overview</span> 446 </a></div> 447 </li> 448 449 <li class="nav-section"> 450 <div class="nav-section-header empty"><a href="/google/play-services/games.html"> 451 <span class="en">Games</span> 452 </a></div> 453 </li> 454 <li class="nav-section"> 455 <div class="nav-section-header empty"><a href="/google/play-services/location.html"> 456 <span class="en">Location</span> 457 </a></div> 458 </li> 459 <li class="nav-section"> 460 <div class="nav-section-header empty"><a href="/google/play-services/plus.html"> 461 <span class="en">Google+</span> 462 </a></div> 463 </li> 464 <li class="nav-section"> 465 <div class="nav-section-header empty"><a href="/google/play-services/maps.html"> 466 <span class="en">Maps</span> 467 </a></div> 468 </li> 469 <li class="nav-section"> 470 <div class="nav-section-header empty"><a href="/google/play-services/drive.html"> 471 <span class="en">Drive</span> 472 </a></div> 473 </li> 474 <li class="nav-section"> 475 <div class="nav-section-header empty"><a href="/google/play-services/cast.html"> 476 <span class="en">Cast</span> 477 </a></div> 478 </li> 479 <li class="nav-section"> 480 <div class="nav-section-header"><a href="/google/play-services/ads.html"> 481 <span class="en">Ads</span></a> 482 </div> 483 <ul> 484 <li><a href="/google/play-services/id.html"> 485 <span class="en">Advertising ID</span></a> 486 </li> 487 </ul> 488 </li> 489 <li class="nav-section"> 490 <div class="nav-section-header empty"><a href="/google/play-services/wallet.html"> 491 <span class="en">Wallet</span> 492 </a></div> 493 </li> 494 495 496 <li class="nav-section"> 497 <div class="nav-section-header"><a href="/google/play-services/index.html"> 498 <span class="en">Google Play Services</span></a> 499 </div> 500 <ul> 501 <li><a href="/google/play-services/setup.html"> 502 <span class="en">Setting Up Google Play Services</span></a> 503 </li> 504 <li class="nav-section"> 505 <div class="nav-section-header"><a href="/google/auth/api-client.html"> 506 <span class="en">Accessing Google APIs</span></a> 507 </div> 508 <ul> 509 <li> 510 <a href="/google/auth/http-auth.html"> 511 <span class="en">Authorizing with Google for REST APIs</span> 512 </a> 513 </li> 514 </ul> 515 </li> 516 <li id="gms-tree-list" class="nav-section"> 517 <div class="nav-section-header"> 518 <a href="/reference/gms-packages.html"> 519 <span class="en">Reference</span> 520 </a> 521 <div> 522 </li> 523 </ul> 524 </li> 525 526 527 <li class="nav-section"> 528 <div class="nav-section-header"><a href="/google/play/billing/index.html"> 529 <span class="en">Google Play In-app Billing</span></a> 530 </div> 531 <ul> 532 <li><a href="/google/play/billing/billing_overview.html"> 533 <span class="en">Overview</span></a> 534 </li> 535 <li class="nav-section"><div class="nav-section-header"><a href="/google/play/billing/api.html"> 536 <span class="en">Version 3 API</span></a></div> 537 <ul> 538 <li><a href="/google/play/billing/billing_integrate.html"> 539 <span class="en">Implementing the API</span></a></li> 540 <li><a href="/google/play/billing/billing_reference.html"> 541 <span class="en">Reference</span></a></li> 542 </ul> 543 </li> 544 <li class="nav-section"><div class="nav-section-header"><a href="/google/play/billing/v2/api.html"> 545 <span class="en">Version 2 API</span></a></div> 546 <ul> 547 <li><a href="/google/play/billing/v2/billing_integrate.html"> 548 <span class="en">Implementing the API</span></a></li> 549 <li><a href="/google/play/billing/v2/billing_subscriptions.html"> 550 <span class="en">Subscriptions</span></a></li> 551 <li><a href="/google/play/billing/v2/billing_reference.html"> 552 <span class="en">Reference</span></a></li> 553 </ul> 554 </li> 555 <li><a href="/google/play/billing/billing_subscriptions.html"> 556 <span class="en">Subscriptions</span></a> 557 </li> 558 <li><a href="/google/play/billing/billing_best_practices.html"> 559 <span class="en">Security and Design</span></a> 560 </li> 561 <li><a href="/google/play/billing/billing_testing.html"> 562 <span class="en">Testing In-app Billing</span></a> 563 </li> 564 <li><a href="/google/play/billing/billing_admin.html"> 565 <span class="en">Administering In-app Billing</span></a> 566 </li> 567 <li><a href="/google/play/billing/versions.html"> 568 <span class="en">Version Notes</span></a> 569 </li> 570 </ul> 571 </li> 572 573 574 575 <li class="nav-section"> 576 <div class="nav-section-header"><a href="/google/gcm/index.html"> 577 <span class="en">Google Cloud Messaging</span></a> 578 </div> 579 <ul> 580 <li><a href="/google/gcm/gcm.html"> 581 <span class="en">Overview</span></a> 582 </li> 583 <li><a href="/google/gcm/gs.html"> 584 <span class="en">Getting Started</span></a> 585 </li> 586 <li><a href="/google/gcm/client.html"> 587 <span class="en">Implementing GCM Client</span></a> 588 </li> 589 <li class="nav-section"><div class="nav-section-header"><a href="/google/gcm/server.html"> 590 <span class="en">Implementing GCM Server</span></a></div> 591 <ul> 592 <li><a href="/google/gcm/ccs.html"> 593 <span class="en">CCS (XMPP)</span></a></li> 594 <li><a href="/google/gcm/http.html"> 595 <span class="en">HTTP</span></a></li> 596 </ul> 597 </li> 598 <li><a href="/google/gcm/notifications.html"> 599 <span class="en">User Notifications</span></a> 600 </li> 601 <li><a href="/google/gcm/adv.html"> 602 <span class="en">Advanced Topics</span></a> 603 </li> 604 <li><a href="/google/gcm/c2dm.html"> 605 <span class="en">Migration</span></a> 606 </li> 607 <li id="gcm-tree-list" class="nav-section"> 608 <div class="nav-section-header"> 609 <a href="/reference/gcm-packages.html"> 610 <span class="en">Reference</span> 611 </a> 612 <div> 613 </li> 614 </ul> 615 </li> 616 617 <li class="nav-section"> 618 <div class="nav-section-header empty"><a href="/google/gcs/index.html"> 619 <span class="en">Google Cloud Save</span></a> 620 </div> 621 </li> 622 623 <li class="nav-section"> 624 <div class="nav-section-header"><a href="/google/play/dist.html"> 625 <span class="en">Google Play Distribution</span></a> 626 </div> 627 <ul> 628 <li><a href="/google/play/filters.html"> 629 <span class="en">Filters on Google Play</span></a> 630 </li> 631 <li><a href="/google/play/billing/gp-purchase-status-api.html"> 632 <span class="en">Google Play Developer API</span></a> 633 </li> 634 <li><a href="/google/play/publishing/multiple-apks.html"> 635 <span class="en">Multiple APK Support</span></a> 636 </li> 637 <li><a href="/google/play/expansion-files.html"> 638 <span class="en">APK Expansion Files</span></a> 639 </li> 640 <li class="nav-section"> 641 <div class="nav-section-header"><a href="/google/play/licensing/index.html"> 642 <span class="en">Application Licensing</span></a> 643 </div> 644 <ul> 645 <li><a href="/google/play/licensing/overview.html"> 646 <span class="en">Licensing Overview</span></a> 647 </li> 648 <li><a href="/google/play/licensing/setting-up.html"> 649 <span class="en">Setting Up for Licensing</span></a> 650 </li> 651 <li><a href="/google/play/licensing/adding-licensing.html"> 652 <span class="en">Adding Licensing to Your App</span></a> 653 </li> 654 <li><a href="/google/play/licensing/licensing-reference.html"> 655 <span class="en">Licensing Reference</span></a> 656 </li> 657 </ul> 658 </li> 659 660 <li class="nav-section"> 661 <div class="nav-section-header"><a href="/google/backup/index.html"> 662 Android Backup Service</a> 663 </div> 664 <ul> 665 <li><a href="/google/backup/signup.html"> 666 Register</a> 667 </li> 668 </ul> 669 </li> 670 671 </ul> 672 673</li> 674 675 676 677</ul> 678 679<script type="text/javascript"> 680<!-- 681 buildToggleLists(); 682 changeNavLang(getLangPref()); 683//--> 684</script> 685 686 687 688 689 </div> 690 <script type="text/javascript"> 691 showGoogleRefTree(); 692 693 </script> 694 </div> <!-- end side-nav --> 695 <script> 696 $(document).ready(function() { 697 scrollIntoView("devdoc-nav"); 698 }); 699 </script> 700 701 702 703 704 705 706<div class="col-12" id="doc-col"> 707 708<div id="api-info-block"> 709<div class="api-level"> 710 711 712 713 714</div> 715</div> 716 717<div id="jd-header"> 718 package 719 <h1>com.google.android.gms.wearable</h1> 720</div><!-- end header --> 721 722<div id="naMessage"></div> 723 724<div id="jd-content" class="api apilevel-"> 725 726 727 728 729 730 731 732 <h2>Interfaces</h2> 733 <div class="jd-sumtable"> 734 735 <table class="jd-sumtable-expando"> 736 <tr class="alt-color api apilevel-" > 737 <td class="jd-linkcol"><a href="/reference/com/google/android/gms/wearable/DataApi.html">DataApi</a></td> 738 <td class="jd-descrcol" width="100%">Exposes an API for components to read or write <code><a href="/reference/com/google/android/gms/wearable/DataItem.html">DataItem</a></code>s and <code><a href="/reference/com/google/android/gms/wearable/Asset.html">Asset</a></code>s. </td> 739 </tr> 740 <tr class=" api apilevel-" > 741 <td class="jd-linkcol"><a href="/reference/com/google/android/gms/wearable/DataApi.DataItemResult.html">DataApi.DataItemResult</a></td> 742 <td class="jd-descrcol" width="100%">Contains a single data item. </td> 743 </tr> 744 <tr class="alt-color api apilevel-" > 745 <td class="jd-linkcol"><a href="/reference/com/google/android/gms/wearable/DataApi.DataListener.html">DataApi.DataListener</a></td> 746 <td class="jd-descrcol" width="100%">Used with <code><a href="/reference/com/google/android/gms/wearable/DataApi.html#addListener(com.google.android.gms.common.api.GoogleApiClient, com.google.android.gms.wearable.DataApi.DataListener)">addListener(GoogleApiClient, DataApi.DataListener)</a></code> to receive data events. </td> 747 </tr> 748 <tr class=" api apilevel-" > 749 <td class="jd-linkcol"><a href="/reference/com/google/android/gms/wearable/DataApi.DeleteDataItemsResult.html">DataApi.DeleteDataItemsResult</a></td> 750 <td class="jd-descrcol" width="100%">Contains the number of deleted items. </td> 751 </tr> 752 <tr class="alt-color api apilevel-" > 753 <td class="jd-linkcol"><a href="/reference/com/google/android/gms/wearable/DataApi.GetFdForAssetResult.html">DataApi.GetFdForAssetResult</a></td> 754 <td class="jd-descrcol" width="100%">Contains a file descriptor for the requested asset. </td> 755 </tr> 756 <tr class=" api apilevel-" > 757 <td class="jd-linkcol"><a href="/reference/com/google/android/gms/wearable/DataEvent.html">DataEvent</a></td> 758 <td class="jd-descrcol" width="100%">Data interface for data events. </td> 759 </tr> 760 <tr class="alt-color api apilevel-" > 761 <td class="jd-linkcol"><a href="/reference/com/google/android/gms/wearable/DataItem.html">DataItem</a></td> 762 <td class="jd-descrcol" width="100%">The base object of data stored in the Android Wear network. </td> 763 </tr> 764 <tr class=" api apilevel-" > 765 <td class="jd-linkcol"><a href="/reference/com/google/android/gms/wearable/DataItemAsset.html">DataItemAsset</a></td> 766 <td class="jd-descrcol" width="100%">A reference to an asset stored in a data item. </td> 767 </tr> 768 <tr class="alt-color api apilevel-" > 769 <td class="jd-linkcol"><a href="/reference/com/google/android/gms/wearable/MessageApi.html">MessageApi</a></td> 770 <td class="jd-descrcol" width="100%">Exposes an API for components to send messages to other nodes. </td> 771 </tr> 772 <tr class=" api apilevel-" > 773 <td class="jd-linkcol"><a href="/reference/com/google/android/gms/wearable/MessageApi.MessageListener.html">MessageApi.MessageListener</a></td> 774 <td class="jd-descrcol" width="100%">Used with <code><a href="/reference/com/google/android/gms/wearable/MessageApi.html#addListener(com.google.android.gms.common.api.GoogleApiClient, com.google.android.gms.wearable.MessageApi.MessageListener)">addListener(GoogleApiClient, MessageApi.MessageListener)</a></code> to receive message events. </td> 775 </tr> 776 <tr class="alt-color api apilevel-" > 777 <td class="jd-linkcol"><a href="/reference/com/google/android/gms/wearable/MessageApi.SendMessageResult.html">MessageApi.SendMessageResult</a></td> 778 <td class="jd-descrcol" width="100%">Contains the request id assigned to the message. </td> 779 </tr> 780 <tr class=" api apilevel-" > 781 <td class="jd-linkcol"><a href="/reference/com/google/android/gms/wearable/MessageEvent.html">MessageEvent</a></td> 782 <td class="jd-descrcol" width="100%">Information about a message received by a listener. </td> 783 </tr> 784 <tr class="alt-color api apilevel-" > 785 <td class="jd-linkcol"><a href="/reference/com/google/android/gms/wearable/Node.html">Node</a></td> 786 <td class="jd-descrcol" width="100%">Information about a particular node in the Android Wear network. </td> 787 </tr> 788 <tr class=" api apilevel-" > 789 <td class="jd-linkcol"><a href="/reference/com/google/android/gms/wearable/NodeApi.html">NodeApi</a></td> 790 <td class="jd-descrcol" width="100%">Exposes an API for to learn about local or connected Nodes. </td> 791 </tr> 792 <tr class="alt-color api apilevel-" > 793 <td class="jd-linkcol"><a href="/reference/com/google/android/gms/wearable/NodeApi.GetConnectedNodesResult.html">NodeApi.GetConnectedNodesResult</a></td> 794 <td class="jd-descrcol" width="100%">Contains a list of connected nodes. </td> 795 </tr> 796 <tr class=" api apilevel-" > 797 <td class="jd-linkcol"><a href="/reference/com/google/android/gms/wearable/NodeApi.GetLocalNodeResult.html">NodeApi.GetLocalNodeResult</a></td> 798 <td class="jd-descrcol" width="100%">Contains the name and id that represents this device. </td> 799 </tr> 800 <tr class="alt-color api apilevel-" > 801 <td class="jd-linkcol"><a href="/reference/com/google/android/gms/wearable/NodeApi.NodeListener.html">NodeApi.NodeListener</a></td> 802 <td class="jd-descrcol" width="100%">Used with <code><a href="/reference/com/google/android/gms/wearable/NodeApi.html#addListener(com.google.android.gms.common.api.GoogleApiClient, com.google.android.gms.wearable.NodeApi.NodeListener)">addListener(GoogleApiClient, NodeApi.NodeListener)</a></code> to receive node events. </td> 803 </tr> 804 </table> 805 </div> 806 807 808 809 810 <h2>Classes</h2> 811 <div class="jd-sumtable"> 812 813 <table class="jd-sumtable-expando"> 814 <tr class="alt-color api apilevel-" > 815 <td class="jd-linkcol"><a href="/reference/com/google/android/gms/wearable/Asset.html">Asset</a></td> 816 <td class="jd-descrcol" width="100%">An asset is a binary blob shared between data items that is replicated across the wearable 817 network on demand. </td> 818 </tr> 819 <tr class=" api apilevel-" > 820 <td class="jd-linkcol"><a href="/reference/com/google/android/gms/wearable/DataEventBuffer.html">DataEventBuffer</a></td> 821 <td class="jd-descrcol" width="100%">Data structure holding references to a set of events. </td> 822 </tr> 823 <tr class="alt-color api apilevel-" > 824 <td class="jd-linkcol"><a href="/reference/com/google/android/gms/wearable/DataItemBuffer.html">DataItemBuffer</a></td> 825 <td class="jd-descrcol" width="100%">Data structure holding reference to a set of <code><a href="/reference/com/google/android/gms/wearable/DataItem.html">DataItem</a></code>s. </td> 826 </tr> 827 <tr class=" api apilevel-" > 828 <td class="jd-linkcol"><a href="/reference/com/google/android/gms/wearable/DataMap.html">DataMap</a></td> 829 <td class="jd-descrcol" width="100%">A map of data supported by <code><a href="/reference/com/google/android/gms/wearable/PutDataMapRequest.html">PutDataMapRequest</a></code> and <code><a href="/reference/com/google/android/gms/wearable/DataMapItem.html">DataMapItem</a></code>s. </td> 830 </tr> 831 <tr class="alt-color api apilevel-" > 832 <td class="jd-linkcol"><a href="/reference/com/google/android/gms/wearable/DataMapItem.html">DataMapItem</a></td> 833 <td class="jd-descrcol" width="100%">Creates a new dataItem-like object containing structured and serializable data. </td> 834 </tr> 835 <tr class=" api apilevel-" > 836 <td class="jd-linkcol"><a href="/reference/com/google/android/gms/wearable/PutDataMapRequest.html">PutDataMapRequest</a></td> 837 <td class="jd-descrcol" width="100%">PutDataMapRequest is a DataMap-aware version of <code><a href="/reference/com/google/android/gms/wearable/PutDataRequest.html">PutDataRequest</a></code>. </td> 838 </tr> 839 <tr class="alt-color api apilevel-" > 840 <td class="jd-linkcol"><a href="/reference/com/google/android/gms/wearable/PutDataRequest.html">PutDataRequest</a></td> 841 <td class="jd-descrcol" width="100%">PutDataRequest is used to create new data items in the Android Wear network. </td> 842 </tr> 843 <tr class=" api apilevel-" > 844 <td class="jd-linkcol"><a href="/reference/com/google/android/gms/wearable/Wearable.html">Wearable</a></td> 845 <td class="jd-descrcol" width="100%">An API for the Android Wear platform. </td> 846 </tr> 847 <tr class="alt-color api apilevel-" > 848 <td class="jd-linkcol"><a href="/reference/com/google/android/gms/wearable/Wearable.WearableOptions.html">Wearable.WearableOptions</a></td> 849 <td class="jd-descrcol" width="100%">API configuration parameters for Wearable API. </td> 850 </tr> 851 <tr class=" api apilevel-" > 852 <td class="jd-linkcol"><a href="/reference/com/google/android/gms/wearable/Wearable.WearableOptions.Builder.html">Wearable.WearableOptions.Builder</a></td> 853 <td class="jd-descrcol" width="100%"> </td> 854 </tr> 855 <tr class="alt-color api apilevel-" > 856 <td class="jd-linkcol"><a href="/reference/com/google/android/gms/wearable/WearableListenerService.html">WearableListenerService</a></td> 857 <td class="jd-descrcol" width="100%">Receives events from other nodes, such as data changes, messages or connectivity events. </td> 858 </tr> 859 <tr class=" api apilevel-" > 860 <td class="jd-linkcol"><a href="/reference/com/google/android/gms/wearable/WearableStatusCodes.html">WearableStatusCodes</a></td> 861 <td class="jd-descrcol" width="100%">Error codes for wearable API failures. </td> 862 </tr> 863 </table> 864 </div> 865 866 867 868 869 870 871 872 873 874 875 876 877<div id="footer" class="wrap" > 878 879 880 <div id="copyright"> 881 882 Except as noted, this content is licensed under <a 883 href="http://www.apache.org/licenses/LICENSE-2.0">Apache 2.0</a>. 884 For details and restrictions, see the <a href="/license.html"> 885 Content License</a>. 886 </div> 887 <div id="build_info"> 888 889<script src="/timestamp.js" type="text/javascript"></script> 890<script>document.write(BUILD_TIMESTAMP)</script> 891 892 </div> 893 894 895 <div id="footerlinks"> 896 897 <p> 898 <a href="/about/index.html">About Android</a> | 899 <a href="/legal.html">Legal</a> | 900 <a href="/support.html">Support</a> 901 </p> 902 </div> 903 904</div> <!-- end footer --> 905</div><!-- end jd-content --> 906</div><!-- doc-content --> 907 908</div> <!-- end body-content --> 909 910 911 912 913 914 915</body> 916</html> 917