It provides Apple GameCenter achievements and leaderboard
More...
It provides Apple GameCenter achievements and leaderboard
◆ onLoadAchievements
◆ onReportAchievement
Apple GameCenter ReportAchievement result handler.
- Parameters
-
result | Result of API call. |
- See also
- ResultAPI
◆ onReportLeaderboard
Apple GameCenter Leaderboard result handler.
- Parameters
-
result | Result of API call. |
- See also
- ResultAPI
◆ onResetAchievements
Apple GameCenter ResetAchievements result handler.
- Parameters
-
result | Result of API call. |
- See also
- ResultAPI
◆ onShowAchievement
Apple GameCenter ShowAchievement result handler.
- Parameters
-
result | Result of API call. |
- See also
- ResultAPI
◆ onShowLeaderboard
Apple GameCenter ShowLeaderboard result handler.
- Parameters
-
- See also
- ResultAPI
◆ loadAchievements()
It load Apple GameCenter achievement.
- Parameters
-
listener | Result listener of API call. |
◆ reportAchievement()
static void ProviderApple::reportAchievement |
( |
std::string |
percent, |
|
|
bool |
showsCompletionBanner, |
|
|
std::string |
achievementIdentifier, |
|
|
onReportAchievement |
listener |
|
) |
| |
|
static |
It report Apple GameCenter achievement.
- Warning
- achievement identifier is set in iTunes Connect.
- Parameters
-
percent | Achievement progress percent value(ex. 75.0) |
showsCompletionBanner | Whether the top banner is exposed when the achievement is successful. default is NO. |
achievementIdentifier | Achievement identifier |
listener | Result listener of API call. |
◆ reportScore()
static void ProviderApple::reportScore |
( |
std::string |
score, |
|
|
std::string |
leaderboardIdentifier, |
|
|
onReportLeaderboard |
listener |
|
) |
| |
|
static |
It send record to Apple GameCenter Leaderboard.
- Warning
- The score format and leaderboard identifier are set in iTunes Connect.
- Parameters
-
score | Player's score. |
leaderboardIdentifier | Leaderboard Identifier. |
listener | Result listener of API call. |
◆ resetAchievements()
It resets Apple GameCenter Achievement information.
- Parameters
-
listener | Result listener of API call. |
◆ showAchievements()
It shows Apple GameCenter Achievement UI.
- Parameters
-
listener | Result listener of API call. |
◆ showLeaderboard()
It show Apple GameCenter Leaderboard UI.
- Parameters
-
listener | Result listener of API call. |