HIVE SDK for iOS

HIVEProviderApple.h
1 //
2 // HIVEProviderApple.h
3 // Hive_v2_source
4 //
5 // Created by Arkeo Lucid on 2017. 6. 7..
6 // Copyright © 2017년 COM2US. All rights reserved.
7 //
8 
26 #import <Foundation/Foundation.h>
27 
28 @class HIVEResultAPI;
30 
31 
49 
50 
68 
69 
87 typedef void (^HIVEProviderAppleLoadAchievementsHandler) (HIVEResultAPI *result, NSArray<HIVEProviderAppleAchievement *> *achievements);
88 
89 
108 
109 
128 
129 
148 
149 
150 // MARK: -
151 // MARK: HIVEProviderApple
152 /*
153 * \~korean Apple GameCenter의 업적 및 리더보드 기능을 제공한다.<br />
154 * \~english It provides Apple GameCenter achievements and leaderboard <br />
155 * @author Arkeo Lucid
156 * @since 4.3.0
157 * @ingroup ProviderApple
158 */
159 @interface HIVEProviderApple : NSObject
160 
161 // MARK: - Leaderboard
162 
185 + (void)reportScore:(NSString *)score
186 leaderboardIdentifier:(NSString *)leaderboardIdentifier
188 
189 
204 + (void)showLeaderboard:(HIVEProviderAppleShowLeaderboardHandler)handler;
205 
206 
207 // MARK: - Achievement
222 + (void)loadAchievements:(HIVEProviderAppleLoadAchievementsHandler)handler;
223 
224 
249 + (void)reportAchievement:(NSString *)percent
250  showsCompletionBanner:(BOOL)showsCompletionBanner
251  achievementIdentifier:(NSString *)achievementIdentifier
253 
254 
269 + (void)showAchievements:(HIVEProviderAppleShowAchievementHandler)handler;
270 
271 
286 + (void)resetAchievements:(HIVEProviderAppleResetAchievements)handler;
287 
288 @end
289 
290 
291 // MARK: - HIVEProviderAppleAchievement
297 @interface HIVEProviderAppleAchievement : NSObject
298 <NSCopying>
299 
300  @property (nonatomic, copy) NSString *identifier;
301  @property (nonatomic, copy) NSString *percent;
302  @property (nonatomic) BOOL completed;
303 
304 - (NSString *)toJson;
305 
306 @end
307 
308 
< NSCopying > NSString * identifier
업적 identifier.
Definition: HIVEProviderApple.h:300
NSString * percent
업적 진행 percent value.
Definition: HIVEProviderApple.h:301
void(^ HIVEProviderAppleReportAchievementHandler)(HIVEResultAPI *result)
Apple GameCenter 업적을 전송 result handler.
Definition: HIVEProviderApple.h:107
Definition: HIVEResultAPI.h:25
void(^ HIVEProviderAppleReportLeaderboardHandler)(HIVEResultAPI *result)
Apple GameCenter 리더보드 전송 result handler.
Definition: HIVEProviderApple.h:48
BOOL completed
업적 완료 여부.
Definition: HIVEProviderApple.h:302
void(^ HIVEProviderAppleShowAchievementHandler)(HIVEResultAPI *result)
Apple GameCenter 업적 UI 노출 result handler.
Definition: HIVEProviderApple.h:127
void(^ HIVEProviderAppleResetAchievements)(HIVEResultAPI *result)
Apple GameCenter 업적 초기화 result handler.
Definition: HIVEProviderApple.h:147
Apple GameCenter 업적 정보
Definition: HIVEProviderApple.h:297
void(^ HIVEProviderAppleShowLeaderboardHandler)(HIVEResultAPI *result)
Apple GameCenter 리더보드 UI 노출 result handler.
Definition: HIVEProviderApple.h:67
void(^ HIVEProviderAppleLoadAchievementsHandler)(HIVEResultAPI *result, NSArray< HIVEProviderAppleAchievement *> *achievements)
Apple GameCenter 업적 로드 result handler.
Definition: HIVEProviderApple.h:87
Copyright © GAMEVIL COM2US PLATFORM Inc. All Right Reserved. 이용약관 개인정보 처리방침