HIVE SDK for iOS

HIVEConfiguration.h
Go to the documentation of this file.
1 
17 #import <Foundation/Foundation.h>
18 //#import "HIVEAnalytics.h"
19 
20 @class HIVETracker;
21 @class HIVEPermissionViewData;
22 
23 
24 
31 typedef NS_ENUM(NSInteger, HIVEZoneType) {
32  kHIVEZoneTypeNone = -1,
33  // REMOVE : Test서버 외부에 노출되지 않아야 함 -> but impl에서 사용하므로 체크 필요 (확인)
34  kHIVEZoneTypeTest = 0,
35  kHIVEZoneTypeSandbox,
36  kHIVEZoneTypeReal,
37  kHIVEZoneTypeDev,
38 };
39 
46 typedef NS_ENUM(NSInteger, HIVECustomUIType) {
47  kHIVECustomUITypeSignIn = 0,
48  kHIVECustomUITypeConnect,
49  kHIVECustomUITypeAchievement,
50  kHIVECustomUITypeSyncAccount,
51 };
52 
53 
61 typedef NS_ENUM(NSInteger, HIVELanguage) {
62  kHIVELanguageDE = 0,
63  kHIVELanguageEN,
64  kHIVELanguageES,
65  kHIVELanguageFR,
66  kHIVELanguageID,
67  kHIVELanguageIT,
68  kHIVELanguageJA,
69  kHIVELanguageKO,
70  kHIVELanguagePT,
71  kHIVELanguageRU,
72  kHIVELanguageTH,
73  kHIVELanguageTR,
74  kHIVELanguageVI,
75  kHIVELanguageZHS,
76  kHIVELanguageZHT,
77 };
78 
89 @interface HIVEConfiguration : NSObject
90 
103 +(NSString*)getHiveSDKVersion;
104 
105 
118 +(NSString*)getReferenceSDKVersion;
119 
120 
134 +(NSString*)getAppId;
135 
149 +(void)setAppId:(NSString*)appId;
150 
161 +(HIVEZoneType)getZone;
162 +(const NSString*) stringZoneType:(HIVEZoneType)type;
163 
175 +(void)setZoneWithString:(NSString*)zoneString;
186 +(void)setZone:(HIVEZoneType)zone;
187 
200 +(NSString*)getServerId;
201 
202 
215 +(void)setServerId:(NSString*)serverId;
216 
217 
234 +(NSString*)setGameLanguage:(NSString*)gameLanguage;
235 
246 +(BOOL)getUseLog;
247 
258 +(void)setUseLog:(BOOL)useLog;
259 
260 
271 +(NSInteger)getHttpConnectTimeout;
282 +(NSInteger)getHttpReadTimeout;
283 
284 
285 
296 +(void)setHttpConnectTimeout:(NSInteger)httpTimeout;
307 +(void)setHttpReadTimeout:(NSInteger)httpTimeout;
308 
309 
320 +(NSInteger)getMaxGameLogSize;
321 
334 +(void)setMaxGameLogSize:(NSInteger)maxGameLogSize;
335 
346 +(NSString*)getMarket;
347 
348 
359 +(void)setMarket:(NSString*)market;
360 
361 
372 +(NSString*)getChannel;
373 
374 
385 +(void)setChannel:(NSString*)channel;
386 
396 +(NSString*)getQQAppId;
397 
398 +(NSString *)getWechatAppId;
399 
400 +(NSString *)getWechatAppSecret;
401 
402 +(NSString *)getVKAppId;
403 
404 // TODO: GoogleClientID get 필요 여부 체크
415 +(NSDictionary*)getUseCustomUI;
416 
417 +(BOOL)getUseCustomUI:(HIVECustomUIType)customType;
418 
429 +(void)setCustomUI:(NSDictionary*)useCustomUI;
430 
439 +(NSString*)getCompany;
440 
451 +(void)setCompany:(NSString*)company;
452 
461 +(NSInteger)getCompanyIndex;
462 
473 +(void)setCompanyIndex:(NSInteger)companyIndex;
474 
475 
487 +(NSArray<HIVETracker*>*)getTrackers;
488 
489 
500 +(void)setTrackers:(NSArray<HIVETracker*>*)trackers;
501 
517 +(NSDictionary<NSString*, NSObject*>*)getConfiguration;
518 
529 +(NSString*)getHiveCountry;
530 
541 +(void)setFacebookPermissions:(NSArray *)permissions;
542 
553 +(NSArray *)getFacebookPermissions;
554 
560 + (NSUInteger)getAnalyticsSendLimit;
561 
567 + (void)setAnalyticsSendLimit:(NSUInteger)limit;
568 
574 + (NSUInteger)getAnalyticsQueueLimit;
575 
581 + (void)setAnalyticsQueueLimit:(NSUInteger)limit;
582 
589 
595 + (void)setAnalyticsSendCycleSeconds:(float)seconds;
596 
597 
603 +(BOOL)getAgeGateU13;
604 
610 +(void)setAgeGateU13:(BOOL)ageGateU13;
611 
617 +(void)setHivePermissionViewOn:(BOOL)isOn;
618 
626 +(HIVEPermissionViewData *)getPermissionViewData:(HIVELanguage)language;
627 
628 
629 @end
630 
631 
typedef NS_ENUM(NSInteger, HIVEZoneType)
HIVE Platform server zone type.
Definition: HIVEConfiguration.h:31
NSString * getMarket()
Returns market.
Definition: HIVEConfiguration.m:243
NSUInteger getAnalyticsSendLimit()
전송 주기마다 전송할 로그의 최대치.
Definition: HIVEConfiguration.m:451
NSString * getReferenceSDKVersion()
Returns the version of SDK referenced by HIVE SDK.
Definition: HIVEConfiguration.m:43
트래커 설정 클래스
Definition: HIVEAnalytics.h:39
HIVEZoneType getZone()
Returns HIVE platform server zone.
Definition: HIVEConfiguration.m:93
NSInteger getHttpReadTimeout()
Returns the default value of HTTP Read Timeout (in seconds)
Definition: HIVEConfiguration.m:193
NSString * getChannel()
Returns channel.
Definition: HIVEConfiguration.m:264
NSArray< HIVETracker * > * getTrackers()
Returns the list of user data tracker for user analysis.
Definition: HIVEConfiguration.m:326
NSInteger getCompanyIndex()
Returns company index information.
Definition: HIVEConfiguration.m:305
NSInteger getMaxGameLogSize()
Returns maximum number of game logs.
Definition: HIVEConfiguration.m:220
NSInteger getHttpConnectTimeout()
Returns the default value of HTTP Connect Timeout (in seconds)
Definition: HIVEConfiguration.m:188
NSArray * getFacebookPermissions()
Sets Facebook Custom Permission.
Definition: HIVEConfiguration.m:433
NSDictionary * getUseCustomUI()
Returns whether HIVE SDK custom UI is used.
Definition: HIVEConfiguration.m:398
NSString * getCompany()
Returns company information.
Definition: HIVEConfiguration.m:285
NSString * getAppId()
Returns AppId (By default, AppId is set to the package name in the AndroidManifest.xml file.
Definition: HIVEConfiguration.m:67
NSString * getServerId()
Return serverId for server-specific maintenance popup support (The world value registered in the bac...
Definition: HIVEConfiguration.m:124
float getAnalyticsSendCycleSeconds()
로그 전송 주기.
Definition: HIVEConfiguration.m:487
BOOL getAgeGateU13()
Hive SDK AgeGateU13 적용 여부 반환
Definition: HIVEConfiguration.m:437
This class manages HIVE SDK configuration.
Definition: HIVEConfiguration.h:89
NSUInteger getAnalyticsQueueLimit()
최대로 쌓을수 있는 로그의 양.
Definition: HIVEConfiguration.m:469
NSDictionary< NSString *, NSObject * > * getConfiguration()
Returns the contents of Configuration file.
Definition: HIVEConfiguration.m:361
NSString * getHiveSDKVersion()
Returns the version of HIVE SDK.
Definition: HIVEConfiguration.m:37
NSString * getHiveCountry()
Returns country code from HIVE server.
Definition: HIVEConfiguration.m:377
NSString * getQQAppId()
Returns QQAppId (QQAppId follows the settings of HIVEConfig.xml file by default)
Definition: HIVEConfiguration.m:348
BOOL getUseLog()
Returns whether HIVE SDK internal log is used.
Definition: HIVEConfiguration.m:166
Copyright © GAMEVIL COM2US PLATFORM Inc. All Right Reserved. Terms of Use Privacy Policy