Hide

ScoreSubmissionData

public final class ScoreSubmissionData extends Object
java.lang.Object
   ↳ com.google.android.gms.games.leaderboard.ScoreSubmissionData

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

Nested Class Summary

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

Public Method Summary

String
String
ScoreSubmissionData.Result
getScoreResult(int timeSpan)
String

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

public String toString ()