com.google.android.gms.games.leaderboard.OnLeaderboardScoresLoadedListener |
Listener for receiving callbacks when leaderboard scores have been loaded.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Called when leaderboard scores have been loaded.
|
Called when leaderboard scores have been loaded.
Possible status codes include:
STATUS_OK
if data was successfully loaded and is up-to-date.STATUS_NETWORK_ERROR_STALE_DATA
if the device was unable to retrieve
the latest data from the network.STATUS_CLIENT_RECONNECT_REQUIRED
if the GamesClient
needs to
reconnect to the service to access this data.STATUS_LICENSE_CHECK_FAILED
if the game is not licensed to the user.
STATUS_INTERNAL_ERROR
if an unexpected error occurred in the service.
statusCode | A status code indicating the result of the operation. |
---|---|
leaderboard | The leaderboard that the requested scores belong to. This is guaranteed to be non-null, and to contain at most one element. The listener must close this object when finished. |
scores | The leaderboard scores that were requested. This is guaranteed to be non-null, though it may be empty. The listener must close this object when finished. |