HIVE SDK for iOS

Classes | Typedefs | Functions
ProviderApple

It provides Apple GameCenter achievements and leaderboard
More...

Classes

class  HIVEProviderAppleAchievement
 Apple GameCenter achievements. More...
 

Typedefs

typedef void(^ HIVEProviderAppleReportLeaderboardHandler) (HIVEResultAPI *result)
 Apple GameCenter Leaderboard result handler. More...
 
typedef void(^ HIVEProviderAppleShowLeaderboardHandler) (HIVEResultAPI *result)
 Apple GameCenter ShowLeaderboard result handler. More...
 
typedef void(^ HIVEProviderAppleLoadAchievementsHandler) (HIVEResultAPI *result, NSArray< HIVEProviderAppleAchievement *> *achievements)
 Apple GameCenter LoadAchievements result handler. More...
 
typedef void(^ HIVEProviderAppleReportAchievementHandler) (HIVEResultAPI *result)
 Apple GameCenter ReportAchievement result handler. More...
 
typedef void(^ HIVEProviderAppleShowAchievementHandler) (HIVEResultAPI *result)
 Apple GameCenter ShowAchievement result handler. More...
 
typedef void(^ HIVEProviderAppleResetAchievements) (HIVEResultAPI *result)
 Apple GameCenter ResetAchievements result handler. More...
 

Functions

(void) + HIVEProviderApple::reportScore:leaderboardIdentifier:handler:
 It send record to Apple GameCenter Leaderboard. More...
 
(void) + HIVEProviderApple::showLeaderboard:
 It show Apple GameCenter Leaderboard UI. More...
 
(void) + HIVEProviderApple::loadAchievements:
 It load Apple GameCenter achievement. More...
 
(void) + HIVEProviderApple::reportAchievement:showsCompletionBanner:achievementIdentifier:handler:
 It report Apple GameCenter achievement. More...
 
(void) + HIVEProviderApple::showAchievements:
 It shows Apple GameCenter Achievement UI. More...
 
(void) + HIVEProviderApple::resetAchievements:
 It resets Apple GameCenter Achievement information. More...
 

Detailed Description

It provides Apple GameCenter achievements and leaderboard

Typedef Documentation

§ HIVEProviderAppleLoadAchievementsHandler

typedef void(^ HIVEProviderAppleLoadAchievementsHandler) (HIVEResultAPI *result, NSArray< HIVEProviderAppleAchievement * > *achievements)

Apple GameCenter LoadAchievements result handler.

Parameters
resultResult of API call.
achievementsList of Achievements.
See also
HIVEResultAPI, HIVEProviderAppleAchievement

§ HIVEProviderAppleReportAchievementHandler

typedef void(^ HIVEProviderAppleReportAchievementHandler) (HIVEResultAPI *result)

Apple GameCenter ReportAchievement result handler.

Parameters
resultResult of API call.
See also
HIVEResultAPI

§ HIVEProviderAppleReportLeaderboardHandler

typedef void(^ HIVEProviderAppleReportLeaderboardHandler) (HIVEResultAPI *result)

Apple GameCenter Leaderboard result handler.

Parameters
resultResult of API call.
See also
HIVEResultAPI

§ HIVEProviderAppleResetAchievements

typedef void(^ HIVEProviderAppleResetAchievements) (HIVEResultAPI *result)

Apple GameCenter ResetAchievements result handler.

Parameters
resultResult of API call.
See also
HIVEResultAPI

§ HIVEProviderAppleShowAchievementHandler

typedef void(^ HIVEProviderAppleShowAchievementHandler) (HIVEResultAPI *result)

Apple GameCenter ShowAchievement result handler.

Parameters
resultResult of API call.
See also
HIVEResultAPI

§ HIVEProviderAppleShowLeaderboardHandler

typedef void(^ HIVEProviderAppleShowLeaderboardHandler) (HIVEResultAPI *result)

Apple GameCenter ShowLeaderboard result handler.

Parameters
resultAPI 호출 결과.
See also
HIVEResultAPI

Function Documentation

§ loadAchievements:()

+ (void) loadAchievements: (HIVEProviderAppleLoadAchievementsHandler handler

It load Apple GameCenter achievement.

Parameters
handlerResult handler of API call.

§ reportAchievement:showsCompletionBanner:achievementIdentifier:handler:()

+ (void) reportAchievement: (NSString *)  percent
showsCompletionBanner: (BOOL)  showsCompletionBanner
achievementIdentifier: (NSString *)  achievementIdentifier
handler: (HIVEProviderAppleReportAchievementHandler handler 

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:leaderboardIdentifier:handler:()

+ (void) reportScore: (NSString *)  score
leaderboardIdentifier: (NSString *)  leaderboardIdentifier
handler: (HIVEProviderAppleReportLeaderboardHandler handler 

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:()

+ (void) resetAchievements: (HIVEProviderAppleResetAchievements handler

It resets Apple GameCenter Achievement information.

Parameters
handlerResult handler of API call.

§ showAchievements:()

+ (void) showAchievements: (HIVEProviderAppleShowAchievementHandler handler

It shows Apple GameCenter Achievement UI.

Parameters
handlerResult handler of API call.

§ showLeaderboard:()

+ (void) showLeaderboard: (HIVEProviderAppleShowLeaderboardHandler handler

It show Apple GameCenter Leaderboard UI.

Parameters
handlerResult handler of API call.
Copyright © GAMEVIL COM2US PLATFORM Inc. All Right Reserved. Terms of Use Privacy Policy