SC_RankingController
Instances of SC_RankingController are used to retrieve the rank for a given user or score.
The rank represents the position of a user or score on a particular leaderboard.
Basic Usage:
-
Get an instance of SC_Client .
-
Use the client instance to get an instance of SC_RankingController by calling SC_Client_CreateRankingController() .
-
Set the searchlist for the SC_RankingController using the SC_RankingController_SetSearchList() method.
-
Request the ranking from the server using one of:
-
Await a successful server response via delegate callbacks.
-
After a successful server response, access the requested rank by calling SC_RankingController_GetRanking() .
-
If you wish to display the highest score associated with a user, you could call SC_RankingController_GetScore() , which would return the score object associated with the user.