HIVE SDK for C++

Classes | Typedefs | Functions
ProviderApple

It provides Apple GameCenter achievements and leaderboard
More...

Classes

class  ProviderAppleAchievement
 Apple GameCenter achievements. More...
 

Typedefs

typedef std::function< void(ResultAPI const &result)> ProviderApple::onReportLeaderboard
 Apple GameCenter Leaderboard result handler. More...
 
typedef std::function< void(ResultAPI const &result)> ProviderApple::onShowLeaderboard
 Apple GameCenter ShowLeaderboard result handler. More...
 
typedef std::function< void(ResultAPI const &result, std::vector< ProviderAppleAchievement > const &achievements)> ProviderApple::onLoadAchievements
 Apple GameCenter LoadAchievements result handler. More...
 
typedef std::function< void(ResultAPI const &result)> ProviderApple::onReportAchievement
 Apple GameCenter ReportAchievement result handler. More...
 
typedef std::function< void(ResultAPI const &result)> ProviderApple::onShowAchievement
 Apple GameCenter ShowAchievement result handler. More...
 
typedef std::function< void(ResultAPI const &result)> ProviderApple::onResetAchievements
 Apple GameCenter ResetAchievements result handler. More...
 

Functions

static void ProviderApple::reportScore (std::string score, std::string leaderboardIdentifier, onReportLeaderboard listener)
 It send record to Apple GameCenter Leaderboard. More...
 
static void ProviderApple::showLeaderboard (onShowLeaderboard listener)
 It show Apple GameCenter Leaderboard UI. More...
 
static void ProviderApple::loadAchievements (onLoadAchievements listener)
 It load Apple GameCenter achievement. More...
 
static void ProviderApple::reportAchievement (std::string percent, bool showsCompletionBanner, std::string achievementIdentifier, onReportAchievement listener)
 It report Apple GameCenter achievement. More...
 
static void ProviderApple::showAchievements (onShowAchievement listener)
 It shows Apple GameCenter Achievement UI. More...
 
static void ProviderApple::resetAchievements (onResetAchievements listener)
 It resets Apple GameCenter Achievement information. More...
 

Detailed Description

It provides Apple GameCenter achievements and leaderboard

Typedef Documentation

◆ onLoadAchievements

typedef std::function<void(ResultAPI const & result,std::vector<ProviderAppleAchievement> const & achievements)> ProviderApple::onLoadAchievements

Apple GameCenter LoadAchievements result handler.

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

◆ onReportAchievement

typedef std::function<void(ResultAPI const & result)> ProviderApple::onReportAchievement

Apple GameCenter ReportAchievement result handler.

Parameters
resultResult of API call.
See also
ResultAPI

◆ onReportLeaderboard

typedef std::function<void(ResultAPI const & result)> ProviderApple::onReportLeaderboard

Apple GameCenter Leaderboard result handler.

Parameters
resultResult of API call.
See also
ResultAPI

◆ onResetAchievements

typedef std::function<void(ResultAPI const & result)> ProviderApple::onResetAchievements

Apple GameCenter ResetAchievements result handler.

Parameters
resultResult of API call.
See also
ResultAPI

◆ onShowAchievement

typedef std::function<void(ResultAPI const & result)> ProviderApple::onShowAchievement

Apple GameCenter ShowAchievement result handler.

Parameters
resultResult of API call.
See also
ResultAPI

◆ onShowLeaderboard

typedef std::function<void(ResultAPI const & result)> ProviderApple::onShowLeaderboard

Apple GameCenter ShowLeaderboard result handler.

Parameters
resultAPI 호출 결과.
See also
ResultAPI

Function Documentation

◆ loadAchievements()

static void ProviderApple::loadAchievements ( onLoadAchievements  listener)
static

It load Apple GameCenter achievement.

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

◆ resetAchievements()

static void ProviderApple::resetAchievements ( onResetAchievements  listener)
static

It resets Apple GameCenter Achievement information.

Parameters
listenerResult listener of API call.

◆ showAchievements()

static void ProviderApple::showAchievements ( onShowAchievement  listener)
static

It shows Apple GameCenter Achievement UI.

Parameters
listenerResult listener of API call.

◆ showLeaderboard()

static void ProviderApple::showLeaderboard ( onShowLeaderboard  listener)
static

It show Apple GameCenter Leaderboard UI.

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