Reputation: 820
am working on gpgs, here i want all the details of a top scorer of the day,week,month in my game. example getRank(),getScoreHolderDisplayName() etc. how to get this details of each individual leaderboard plz suggest some tutorial for it
Upvotes: 0
Views: 691
Reputation: 373
You can only retrieve total, week and day scores. So you can discard month from the beginning. to do that you need to retrieve first all your leaderboards and then each score that you want.
This procedure is not trivial, several methods, callbacks and JSON parsing is involved. I recommend you to look at the GamesClient, OnLeaderboardMetadataLoadedListener and OnLeaderboardScoresLoadedListener reference.
Can't find a proper tutorial explaining these stuff. The idea is that you need first to loadLeaderboardMetadata
to retrieve all the leaderboard info, and then loadTopScores
of each leaderboard and combination of time/social that you want.
Upvotes: 1