ScoreSubmissionData | Android Developers

Quicknav Quicknav
Links

- Google Play Developer Console
- Android Developers Blog
- About Android

Android Sites

- Android.com
- Android Developers
- Android Open Source Project

Language
close

- - About
  - Wear
  - TV
  - Auto
- - Get Started
  - Devices
  - Style
  - Patterns
  - Building Blocks
  - Downloads
  - Videos
- - Training
  - API Guides
  - Reference
  - Tools
  - Google Services
  - Samples
- - Google Play
  - Essentials
  - Get Users
  - Engage & Retain
  - Monetize
  - Tools & Reference
  - Developer Stories

## Results

Loading...
Summary: Nested Classes | Methods | Inherited Methods | [Expand All]
public final class

# ScoreSubmissionData

extends Object

java.lang.Object
↳ | com.google.android.gms.games.leaderboard.ScoreSubmissionData

## Class Overview

Data object representing the result of submitting a score to a leaderboard.

## Summary

Nested Classes
class | ScoreSubmissionData.Result | Simple data class containing the result data for a particular time span.

Public Methods
String | getLeaderboardId() Retrieves the ID of the leaderboard the score was submitted to.
String | getPlayerId() Retrieves the ID of the player the score was submitted for.
ScoreSubmissionData.Result | getScoreResult(int timeSpan) Retrieves the `ScoreSubmissionData.Result` object for the given time span, if any.
String | toString()

[Expand] Inherited Methods
From class java.lang.Object
Object | clone()
boolean | equals(Object arg0)
void | finalize()
final Class<?> | getClass()
int | hashCode()
final void | notify()
final void | notifyAll()
String | toString()
final void | wait()
final void | wait(long arg0, int arg1)
final void | wait(long arg0)

## Public Methods

#### public String getLeaderboardId ()

Retrieves the ID of the leaderboard the score was submitted to.

##### Returns

- The ID of the leaderboard.

#### public String getPlayerId ()

Retrieves the ID of the player the score was submitted for.

##### Returns

- The ID of submitting player.

#### public ScoreSubmissionData.Result getScoreResult (int timeSpan)

Retrieves the `ScoreSubmissionData.Result` object for the given time span, if any.

##### Parameters

timeSpan | Time span to retrieve result for. Valid values are `TIME_SPAN_DAILY`, `TIME_SPAN_WEEKLY`, or `TIME_SPAN_ALL_TIME`.

##### Returns

- The appropriate `ScoreSubmissionData.Result` or `null` if no result was returned for the given time span.

#### public String toString ()