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.games.event | Android Developers</title> 96 97 <!-- STYLESHEETS --> 98 <link rel="stylesheet" 99 href="//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 (a] 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="Disear" 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">Espaol</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="Capacitacin" 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="Guas 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="Capacitacin" 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="Guas 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.games.event</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.games.event</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/games/event/Event.html">Event</a></td> 738 <td class="jd-descrcol" width="100%">Data interface for retrieving event information. </td> 739 </tr> 740 <tr class=" api apilevel-" > 741 <td class="jd-linkcol"><a href="/reference/com/google/android/gms/games/event/Events.html">Events</a></td> 742 <td class="jd-descrcol" width="100%">Entry point for events functionality. </td> 743 </tr> 744 <tr class="alt-color api apilevel-" > 745 <td class="jd-linkcol"><a href="/reference/com/google/android/gms/games/event/Events.LoadEventsResult.html">Events.LoadEventsResult</a></td> 746 <td class="jd-descrcol" width="100%">Result delivered when event data has been loaded. </td> 747 </tr> 748 </table> 749 </div> 750 751 752 753 754 <h2>Classes</h2> 755 <div class="jd-sumtable"> 756 757 <table class="jd-sumtable-expando"> 758 <tr class="alt-color api apilevel-" > 759 <td class="jd-linkcol"><a href="/reference/com/google/android/gms/games/event/EventBuffer.html">EventBuffer</a></td> 760 <td class="jd-descrcol" width="100%">Data structure providing access to a list of events. </td> 761 </tr> 762 <tr class=" api apilevel-" > 763 <td class="jd-linkcol"><a href="/reference/com/google/android/gms/games/event/EventEntity.html">EventEntity</a></td> 764 <td class="jd-descrcol" width="100%">Data object representing the data for a event. </td> 765 </tr> 766 </table> 767 </div> 768 769 770 771 772 773 774 775 776 777 778 779 780 <div id="footer" class="wrap" > 781 782 783 <div id="copyright"> 784 785 Except as noted, this content is licensed under <a 786 href="http://www.apache.org/licenses/LICENSE-2.0">Apache 2.0</a>. 787 For details and restrictions, see the <a href="/license.html"> 788 Content License</a>. 789 </div> 790 <div id="build_info"> 791 792 <script src="/timestamp.js" type="text/javascript"></script> 793 <script>document.write(BUILD_TIMESTAMP)</script> 794 795 </div> 796 797 798 <div id="footerlinks"> 799 800 <p> 801 <a href="/about/index.html">About Android</a> | 802 <a href="/legal.html">Legal</a> | 803 <a href="/support.html">Support</a> 804 </p> 805 </div> 806 807 </div> <!-- end footer --> 808 </div><!-- end jd-content --> 809 </div><!-- doc-content --> 810 811 </div> <!-- end body-content --> 812 813 814 815 816 817 818 </body> 819 </html> 820