mardi 1 avril 2014

How do I pull multiple leaderboards from the Google Play Games API in Android?


Vote count:

0




I'm working on a multi level Android game and I want to pull the highscores after sign in. I'm doing this:



Games.Leaderboards.loadCurrentPlayerLeaderboardScore(getApiClient(), getString(LEADER_BOARDS[i]),
LeaderboardVariant.TIME_SPAN_ALL_TIME, LeaderboardVariant.COLLECTION_PUBLIC)
.setResultCallback(this);


But the callback doesn't give me the leaderboard id:



@Override
public void onResult(LoadPlayerScoreResult res) {

}


So do I have to create callbacks for each of my 25 levels or is there a better solution?



asked 28 secs ago






Aucun commentaire:

Enregistrer un commentaire