It provides Apple GameCenter achievements and leaderboard
More...
It provides Apple GameCenter achievements and leaderboard
◆ loadAchievements()
It load Apple GameCenter achievement.
- Parameters
-
handler | Result handler of API call. |
◆ onLoadAchievements()
delegate void hive.ProviderApple.onLoadAchievements |
( |
ResultAPI |
resultAPI, |
|
|
List< Achievement > |
AchievementList |
|
) |
| |
Apple GameCenter LoadAchievements result handler.
- Parameters
-
result | Result of API call. |
achievements | List of Achievements. |
- See also
- ResultAPI, Achievement
◆ onReportAchievement()
delegate void hive.ProviderApple.onReportAchievement |
( |
ResultAPI |
resultAPI | ) |
|
Apple GameCenter ReportAchievement result handler.
- Parameters
-
result | Result of API call. |
- See also
- ResultAPI
◆ onReportLeaderboard()
delegate void hive.ProviderApple.onReportLeaderboard |
( |
ResultAPI |
resultAPI | ) |
|
Apple GameCenter Leaderboard result handler.
- Parameters
-
result | Result of API call. |
- See also
- ResultAPI
◆ onResetAchievements()
delegate void hive.ProviderApple.onResetAchievements |
( |
ResultAPI |
resultAPI | ) |
|
Apple GameCenter ResetAchievements result handler.
- Parameters
-
result | Result of API call. |
- See also
- ResultAPI
◆ onShowAchievement()
delegate void hive.ProviderApple.onShowAchievement |
( |
ResultAPI |
resultAPI | ) |
|
Apple GameCenter ShowAchievement result handler.
- Parameters
-
result | Result of API call. |
- See also
- ResultAPI
◆ onShowLeaderboard()
delegate void hive.ProviderApple.onShowLeaderboard |
( |
ResultAPI |
resultAPI | ) |
|
Apple GameCenter ShowLeaderboard result handler.
- Parameters
-
- See also
- ResultAPI
◆ reportAchievement()
static void hive.ProviderApple.reportAchievement |
( |
String |
percent, |
|
|
Boolean |
showsCompletionBanner, |
|
|
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 |
handler | Result handler of API call. |
◆ reportScore()
static void hive.ProviderApple.reportScore |
( |
String |
score, |
|
|
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. |
handler | Result handler of API call. |
◆ resetAchievements()
It resets Apple GameCenter Achievement information.
- Parameters
-
handler | Result handler of API call. |
◆ showAchievements()
It shows Apple GameCenter Achievement UI.
- Parameters
-
handler | Result handler of API call. |
◆ showLeaderboard()
It show Apple GameCenter Leaderboard UI.
- Parameters
-
handler | Result handler of API call. |