81 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
83 <link rel="shortcut icon" type="image/x-icon" href="/favicon.ico" />
84 <title>OnScoreSubmittedListener | Android Developers</title>
87 <link rel="stylesheet"
88 href="//fonts.googleapis.com/css?family=Roboto:regular,medium,thin,italic,mediumitalic,bold" title="roboto">
89 <link href="/assets/css/default.css" rel="stylesheet" type="text/css">
94 <script src="//www.google.com/jsapi" type="text/javascript"></script>
95 <script src="/assets/js/android_3p-bundle.js" type="text/javascript"></script>
96 <script type="text/javascript">
100 <script src="/assets/js/docs.js" type="text/javascript"></script>
102 <script type="text/javascript">
103 var _gaq = _gaq || [];
104 _gaq.push(['_setAccount', 'UA-5831155-1']);
105 _gaq.push(['_trackPageview']);
108 var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
109 ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
110 var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
114 <body class="gc-documentation google
115 develop" itemscope itemtype="http://schema.org/Article">
116 <div id="doc-api-level" class="" style="display:none"></div>
123 <div class="wrap" id="header-wrap">
124 <div class="col-3 logo">
125 <a href="/index.html">
126 <img src="/assets/images/dac_logo.png" width="123" height="25" alt="Android Developers" />
128 <div class="btn-quicknav" id="btn-quicknav">
129 <a href="#" class="arrow-inactive">Quicknav</a>
130 <a href="#" class="arrow-active">Quicknav</a>
133 <ul class="nav-x col-9">
135 <a href="/design/index.html"
138 ru-lang="Проектирование"
143 <li class="develop"><a href="/develop/index.html"
149 es-lang="Desarrollar"
151 <li class="distribute last"><a href="/distribute/index.html"
154 ru-lang="Распространение"
162 <div class="menu-container">
163 <div class="moremenu">
164 <div id="more-btn"></div>
166 <div class="morehover" id="moremenu">
167 <div class="top"></div>
169 <div class="header">Links</div>
171 <li><a href="https://play.google.com/apps/publish/">Google Play Developer Console</a></li>
172 <li><a href="http://android-developers.blogspot.com/">Android Developers Blog</a></li>
173 <li><a href="/about/index.html">About Android</a></li>
175 <div class="header">Android Sites</div>
177 <li><a href="http://www.android.com">Android.com</a></li>
178 <li class="active"><a>Android Developers</a></li>
179 <li><a href="http://source.android.com">Android Open Source Project</a></li>
184 <div class="header">Language</div>
185 <div id="language" class="locales">
186 <select name="language" onChange="changeLangPref(this.value, true)">
187 <option value="en">English</option>
188 <option value="es">Español</option>
189 <option value="ja">日本語</option>
190 <option value="ko">한국어</option>
191 <option value="ru">Русский</option>
192 <option value="zh-cn">中文 (中国)</option>
193 <option value="zh-tw">中文 (台灣)</option>
196 <script type="text/javascript">
205 <br class="clearfix" />
207 <div class="bottom"></div>
209 <div class="search" id="search-container">
210 <div class="search-inner">
211 <div id="search-btn"></div>
212 <div class="left"></div>
213 <form onsubmit="return submit_search()">
214 <input id="search_autocomplete" type="text" value="" autocomplete="off" name="q"
215 onfocus="search_focus_changed(this, true)" onblur="search_focus_changed(this, false)"
216 onkeydown="return search_changed(event, true, '/')"
217 onkeyup="return search_changed(event, false, '/')" />
219 <div class="right"></div>
220 <a class="close hide">close</a>
221 <div class="left"></div>
222 <div class="right"></div>
226 <div class="search_filtered_wrapper reference">
227 <div class="suggest-card reference no-display">
228 <ul class="search_filtered">
233 <div class="search_filtered_wrapper docs">
234 <div class="suggest-card dummy no-display"> </div>
235 <div class="suggest-card develop no-display">
236 <ul class="search_filtered">
238 <div class="child-card guides no-display">
240 <div class="child-card training no-display">
243 <div class="suggest-card design no-display">
244 <ul class="search_filtered">
247 <div class="suggest-card distribute no-display">
248 <ul class="search_filtered">
257 <!-- Expanded quicknav -->
258 <div id="quicknav" class="col-9">
262 <li><a href="/design/index.html">Get Started</a></li>
263 <li><a href="/design/style/index.html">Style</a></li>
264 <li><a href="/design/patterns/index.html">Patterns</a></li>
265 <li><a href="/design/building-blocks/index.html">Building Blocks</a></li>
266 <li><a href="/design/downloads/index.html">Downloads</a></li>
267 <li><a href="/design/videos/index.html">Videos</a></li>
272 <li><a href="/training/index.html"
278 es-lang="Capacitación"
280 <li><a href="/guide/components/index.html"
283 ru-lang="Руководства по API"
286 es-lang="Guías de la API"
288 <li><a href="/reference/packages.html"
296 <li><a href="/tools/index.html"
299 ru-lang="Инструменты"
302 es-lang="Herramientas"
304 <ul><li><a href="/sdk/index.html">Get the SDK</a></li></ul>
306 <li><a href="/google/index.html">Google Services</a>
310 <li class="distribute last">
312 <li><a href="/distribute/index.html">Google Play</a></li>
313 <li><a href="/distribute/googleplay/publish/index.html">Publishing</a></li>
314 <li><a href="/distribute/googleplay/promote/index.html">Promoting</a></li>
315 <li><a href="/distribute/googleplay/quality/index.html">App Quality</a></li>
316 <li><a href="/distribute/googleplay/spotlight/index.html">Spotlight</a></li>
317 <li><a href="/distribute/open.html">Open Distribution</a></li>
322 <!-- /Expanded quicknav -->
328 <div id="searchResults" class="wrap" style="display:none;">
329 <h2 id="searchTitle">Results</h2>
330 <div id="leftSearchControl" class="search-control">Loading...</div>
335 <!-- Secondary x-nav -->
338 <ul class="nav-x col-9 develop" style="width:100%">
339 <li class="training"><a href="/training/index.html"
345 es-lang="Capacitación"
347 <li class="guide"><a href="/guide/components/index.html"
350 ru-lang="Руководства по API"
353 es-lang="Guías de la API"
355 <li class="reference"><a href="/reference/packages.html"
363 <li class="tools"><a href="/tools/index.html"
366 ru-lang="Инструменты"
369 es-lang="Herramientas"
371 <li class="google"><a href="/google/index.html"
378 <!-- /Sendondary x-nav -->
388 <div class="wrap clearfix" id="body-content">
389 <div class="col-4" id="side-nav" itemscope itemtype="http://schema.org/SiteNavigationElement">
390 <div id="devdoc-nav" class="scroll-pane">
391 <a class="totop" href="#top" data-g-event="left-nav-top">to top</a>
397 <li class="nav-section">
398 <div class="nav-section-header empty"><a href="/google/index.html">
399 <span class="en">Overview</span>
403 <li class="nav-section">
404 <div class="nav-section-header empty"><a href="/google/play-services/games.html">
405 <span class="en">Games</span>
408 <li class="nav-section">
409 <div class="nav-section-header empty"><a href="/google/play-services/location.html">
410 <span class="en">Location</span>
413 <li class="nav-section">
414 <div class="nav-section-header empty"><a href="/google/play-services/plus.html">
415 <span class="en">Google+</span>
418 <li class="nav-section">
419 <div class="nav-section-header empty"><a href="/google/play-services/maps.html">
420 <span class="en">Google Maps</span>
423 <li class="nav-section">
424 <div class="nav-section-header empty"><a href="/google/play-services/auth.html">
425 <span class="en">Authorization</span>
431 <li class="nav-section">
432 <div class="nav-section-header"><a href="/google/play-services/index.html">
433 <span class="en">Google Play Services</span></a>
436 <li><a href="/google/play-services/setup.html">
437 <span class="en">Setup</span></a>
439 <li id="gms-tree-list" class="nav-section">
440 <div class="nav-section-header">
441 <a href="/reference/gms-packages.html">
442 <span class="en">Reference</span>
450 <li class="nav-section">
451 <div class="nav-section-header"><a href="/google/play/billing/index.html">
452 <span class="en">Google Play In-app Billing</span></a>
455 <li><a href="/google/play/billing/billing_overview.html">
456 <span class="en">Overview</span></a>
458 <li class="nav-section"><div class="nav-section-header"><a href="/google/play/billing/api.html">
459 <span class="en">Version 3 API</span></a></div>
461 <li><a href="/google/play/billing/billing_integrate.html">
462 <span class="en">Implementing the API</span></a></li>
463 <li><a href="/google/play/billing/billing_reference.html">
464 <span class="en">Reference</span></a></li>
467 <li class="nav-section"><div class="nav-section-header"><a href="/google/play/billing/v2/api.html">
468 <span class="en">Version 2 API</span></a></div>
470 <li><a href="/google/play/billing/v2/billing_integrate.html">
471 <span class="en">Implementing the API</span></a></li>
472 <li><a href="/google/play/billing/v2/billing_subscriptions.html">
473 <span class="en">Subscriptions</span></a></li>
474 <li><a href="/google/play/billing/v2/billing_reference.html">
475 <span class="en">Reference</span></a></li>
478 <li><a href="/google/play/billing/billing_subscriptions.html">
479 <span class="en">Subscriptions</span></a>
481 <li><a href="/google/play/billing/billing_best_practices.html">
482 <span class="en">Security and Design</span></a>
484 <li><a href="/google/play/billing/billing_testing.html">
485 <span class="en">Testing In-app Billing</span></a>
487 <li><a href="/google/play/billing/billing_admin.html">
488 <span class="en">Administering In-app Billing</span></a>
490 <li><a href="/google/play/billing/gp-purchase-status-api.html">
491 <span class="en">Purchase Status API</span></a>
493 <li><a href="/google/play/billing/versions.html">
494 <span class="en">Version Notes</span></a>
501 <li class="nav-section">
502 <div class="nav-section-header"><a href="/google/gcm/index.html">
503 <span class="en">Google Cloud Messaging</span></a>
506 <li><a href="/google/gcm/gs.html">
507 <span class="en">Getting Started</span></a>
509 <li><a href="/google/gcm/gcm.html">
510 <span class="en">Architectural Overview</span></a>
512 <li><a href="/google/gcm/ccs.html">
513 <span class="en">Cloud Connection Server</span></a>
515 <li><a href="/google/gcm/notifications.html">
516 <span class="en">User Notifications</span></a>
518 <li><a href="/google/gcm/client.html">
519 <span class="en">GCM Client</span></a>
521 <li><a href="/google/gcm/server.html">
522 <span class="en">GCM Server</span></a>
524 <li><a href="/google/gcm/adv.html">
525 <span class="en">Advanced Topics</span></a>
527 <li><a href="/google/gcm/c2dm.html">
528 <span class="en">Migration</span></a>
530 <li id="gcm-tree-list" class="nav-section">
531 <div class="nav-section-header">
532 <a href="/reference/gcm-packages.html">
533 <span class="en">Reference</span>
540 <li class="nav-section">
541 <div class="nav-section-header"><a href="/google/play/dist.html">
542 <span class="en">Google Play Distribution</span></a>
545 <li><a href="/google/play/filters.html">
546 <span class="en">Filters on Google Play</span></a>
549 <li><a href="/google/play/publishing/multiple-apks.html">
550 <span class="en">Multiple APK Support</span></a>
552 <li><a href="/google/play/expansion-files.html">
553 <span class="en">APK Expansion Files</span></a>
555 <li class="nav-section">
556 <div class="nav-section-header"><a href="/google/play/licensing/index.html">
557 <span class="en">Application Licensing</span></a>
560 <li><a href="/google/play/licensing/overview.html">
561 <span class="en">Licensing Overview</span></a>
563 <li><a href="/google/play/licensing/setting-up.html">
564 <span class="en">Setting Up for Licensing</span></a>
566 <li><a href="/google/play/licensing/adding-licensing.html">
567 <span class="en">Adding Licensing to Your App</span></a>
569 <li><a href="/google/play/licensing/licensing-reference.html">
570 <span class="en">Licensing Reference</span></a>
575 <li class="nav-section">
576 <div class="nav-section-header"><a href="/google/backup/index.html">
577 Android Backup Service</a>
580 <li><a href="/google/backup/signup.html">
594 <script type="text/javascript">
597 changeNavLang(getLangPref());
605 <script type="text/javascript">
609 </div> <!-- end side-nav -->
611 $(document).ready(function() {
612 scrollIntoView("devdoc-nav");
621 <div class="col-12" id="doc-col">
623 <div id="api-info-block">
628 <div class="sum-details-links">
630 </div><!-- end sum-details-links -->
631 <div class="api-level">
637 </div><!-- end api-info-block -->
640 <!-- ======== START OF CLASS DATA ======== -->
648 <h1 itemprop="name">OnScoreSubmittedListener</h1>
657 </div><!-- end header -->
659 <div id="naMessage"></div>
661 <div id="jd-content" class="api apilevel-">
662 <table class="jd-inheritance-table">
667 <td colspan="1" class="jd-inheritance-class-cell">com.google.android.gms.games.leaderboard.OnScoreSubmittedListener</td>
679 <div class="jd-descr">
682 <h2>Class Overview</h2>
683 <p itemprop="articleBody">Listener for getting status back after submitting a score to a leaderboard.
690 </div><!-- jd-descr -->
707 <div class="jd-descr">
738 <!-- ========== METHOD SUMMARY =========== -->
739 <table id="pubmethods" class="jd-sumtable"><tr><th colspan="12">Public Methods</th></tr>
744 <tr class="alt-color api apilevel-" >
745 <td class="jd-typecol"><nobr>
753 <td class="jd-linkcol" width="100%"><nobr>
754 <span class="sympad"><a href="/reference/com/google/android/gms/games/leaderboard/OnScoreSubmittedListener.html#onScoreSubmitted(int, com.google.android.gms.games.leaderboard.SubmitScoreResult)">onScoreSubmitted</a></span>(int statusCode, <a href="/reference/com/google/android/gms/games/leaderboard/SubmitScoreResult.html">SubmitScoreResult</a> result)</nobr>
756 <div class="jd-descrdiv">Called when a leaderboard score has been submitted.</div>
770 </div><!-- jd-descr (summary) -->
781 <!-- XML Attributes -->
793 <!-- Public ctors -->
797 <!-- ========= CONSTRUCTOR DETAIL ======== -->
798 <!-- Protected ctors -->
802 <!-- ========= METHOD DETAIL ======== -->
803 <!-- Public methdos -->
805 <h2>Public Methods</h2>
809 <A NAME="onScoreSubmitted(int, com.google.android.gms.games.leaderboard.SubmitScoreResult)"></A>
811 <div class="jd-details api apilevel-">
812 <h4 class="jd-details-title">
813 <span class="normal">
821 <span class="sympad">onScoreSubmitted</span>
822 <span class="normal">(int statusCode, <a href="/reference/com/google/android/gms/games/leaderboard/SubmitScoreResult.html">SubmitScoreResult</a> result)</span>
824 <div class="api-level">
830 <div class="jd-details-descr">
832 <div class="jd-tagdata jd-tagdescr"><p>Called when a leaderboard score has been submitted. The statusCode indicates whether or not
833 the score was successfully submitted to the servers.
835 Possible status codes include:
837 <li><code><a href="/reference/com/google/android/gms/games/GamesClient.html#STATUS_OK">STATUS_OK</a></code> if the score was successfully submitted to the server.
839 <li><code><a href="/reference/com/google/android/gms/games/GamesClient.html#STATUS_NETWORK_ERROR_OPERATION_DEFERRED">STATUS_NETWORK_ERROR_OPERATION_DEFERRED</a></code> if the device is offline or
840 was otherwise unable to post the score to the server. The score was stored locally and will
841 be posted to the server the next time the device is online and is able to perform a sync (no
842 further action is required from the client).</li>
843 <li><code><a href="/reference/com/google/android/gms/games/GamesClient.html#STATUS_CLIENT_RECONNECT_REQUIRED">STATUS_CLIENT_RECONNECT_REQUIRED</a></code> if the <code><a href="/reference/com/google/android/gms/games/GamesClient.html">GamesClient</a></code> needs to
844 reconnect to the service before attempting to submit the score.</li>
845 <li><code><a href="/reference/com/google/android/gms/games/GamesClient.html#STATUS_LICENSE_CHECK_FAILED">STATUS_LICENSE_CHECK_FAILED</a></code> if the game is not licensed to the user.
847 <li><code><a href="/reference/com/google/android/gms/games/GamesClient.html#STATUS_INTERNAL_ERROR">STATUS_INTERNAL_ERROR</a></code> if an unexpected error occurred in the service.
850 <div class="jd-tagdata">
851 <h5 class="jd-tagtitle">Parameters</h5>
852 <table class="jd-tagtable">
855 <td>A status code indicating the result of the operation.</td>
859 <td>Detailed results of the operation, which includes data regarding whether this
860 was the new high score for any of the supported time spans.
873 <!-- ========= METHOD DETAIL ======== -->
877 <!-- ========= END OF CLASS DATA ========= -->
878 <A NAME="navbar_top"></A>
880 <div id="footer" class="wrap" >
885 Except as noted, this content is licensed under <a
886 href="http://www.apache.org/licenses/LICENSE-2.0">Apache 2.0</a>.
887 For details and restrictions, see the <a href="/license.html">
890 <div id="build_info">
892 <script src="/timestamp.js" type="text/javascript"></script>
893 <script>document.write(BUILD_TIMESTAMP)</script>
898 <div id="footerlinks">
901 <a href="/about/index.html">About Android</a> |
902 <a href="/legal.html">Legal</a> |
903 <a href="/support.html">Support</a>
907 </div> <!-- end footer -->
908 </div> <!-- jd-content -->
910 </div><!-- end doc-content -->
912 </div> <!-- end body-content -->