HIVE SDK for Unity3D

Classes | Functions
ProviderApple

Classes

class  hive.ProviderApple.Achievement
 Apple GameCenter achievements. More...
 

Functions

delegate void hive.ProviderApple.onReportLeaderboard (ResultAPI resultAPI)
 Apple GameCenter Leaderboard result handler.
 
delegate void hive.ProviderApple.onShowLeaderboard (ResultAPI resultAPI)
 Apple GameCenter ShowLeaderboard result handler.
 
delegate void hive.ProviderApple.onLoadAchievements (ResultAPI resultAPI, List< Achievement > AchievementList)
 Apple GameCenter LoadAchievements result handler.
 
delegate void hive.ProviderApple.onReportAchievement (ResultAPI resultAPI)
 Apple GameCenter ReportAchievement result handler.
 
delegate void hive.ProviderApple.onShowAchievement (ResultAPI resultAPI)
 Apple GameCenter ShowAchievement result handler.
 
delegate void hive.ProviderApple.onResetAchievements (ResultAPI resultAPI)
 Apple GameCenter ResetAchievements result handler.
 
static void hive.ProviderApple.reportScore (String score, String leaderboardIdentifier, onReportLeaderboard listener)
 It send record to Apple GameCenter Leaderboard.
 
static void hive.ProviderApple.showLeaderboard (onShowLeaderboard listener)
 It show Apple GameCenter Leaderboard UI.
 
static void hive.ProviderApple.loadAchievements (onLoadAchievements listener)
 It load Apple GameCenter achievement.
 
static void hive.ProviderApple.reportAchievement (String percent, Boolean showsCompletionBanner, String achievementIdentifier, onReportAchievement listener)
 It report Apple GameCenter achievement.
 
static void hive.ProviderApple.showAchievements (onShowAchievement listener)
 It shows Apple GameCenter Achievement UI.
 
static void hive.ProviderApple.resetAchievements (onResetAchievements listener)
 It resets Apple GameCenter Achievement information.
 

Detailed Description

It provides Apple GameCenter achievements and leaderboard

Function Documentation

◆ loadAchievements()

static void hive.ProviderApple.loadAchievements ( onLoadAchievements listener)
static

It load Apple GameCenter achievement.

Parameters
handlerResult handler of API call.

◆ onLoadAchievements()

delegate void hive.ProviderApple.onLoadAchievements ( ResultAPI resultAPI,
List< Achievement > AchievementList )

Apple GameCenter LoadAchievements result handler.

Parameters
resultResult of API call.
achievementsList of Achievements.
See also
ResultAPI, Achievement

◆ onReportAchievement()

delegate void hive.ProviderApple.onReportAchievement ( ResultAPI resultAPI)

Apple GameCenter ReportAchievement result handler.

Parameters
resultResult of API call.
See also
ResultAPI

◆ onReportLeaderboard()

delegate void hive.ProviderApple.onReportLeaderboard ( ResultAPI resultAPI)

Apple GameCenter Leaderboard result handler.

Parameters
resultResult of API call.
See also
ResultAPI

◆ onResetAchievements()

delegate void hive.ProviderApple.onResetAchievements ( ResultAPI resultAPI)

Apple GameCenter ResetAchievements result handler.

Parameters
resultResult of API call.
See also
ResultAPI

◆ onShowAchievement()

delegate void hive.ProviderApple.onShowAchievement ( ResultAPI resultAPI)

Apple GameCenter ShowAchievement result handler.

Parameters
resultResult of API call.
See also
ResultAPI

◆ onShowLeaderboard()

delegate void hive.ProviderApple.onShowLeaderboard ( ResultAPI resultAPI)

Apple GameCenter ShowLeaderboard result handler.

Parameters
resultAPI 호출 결과.
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
percentAchievement progress percent value(ex. 75.0)
showsCompletionBannerWhether the top banner is exposed when the achievement is successful. default is NO.
achievementIdentifierAchievement identifier
handlerResult 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
scorePlayer's score.
leaderboardIdentifierLeaderboard Identifier.
handlerResult handler of API call.

◆ resetAchievements()

static void hive.ProviderApple.resetAchievements ( onResetAchievements listener)
static

It resets Apple GameCenter Achievement information.

Parameters
handlerResult handler of API call.

◆ showAchievements()

static void hive.ProviderApple.showAchievements ( onShowAchievement listener)
static

It shows Apple GameCenter Achievement UI.

Parameters
handlerResult handler of API call.

◆ showLeaderboard()

static void hive.ProviderApple.showLeaderboard ( onShowLeaderboard listener)
static

It show Apple GameCenter Leaderboard UI.

Parameters
handlerResult handler of API call.
Copyright © Com2uS Platform Corporation. All Right Reserved. Terms of Use Privacy Policy