HIVE SDK for C++

HIVE_Configuration.h
Go to the documentation of this file.
1
18#ifndef __HIVE_CONFIGURATION_H__
19#define __HIVE_CONFIGURATION_H__
20
21
22#include "HIVE_ResultAPI.h"
23#include "HIVE_Analytics.h"
24#include "HIVE_PermissionView.h"
25
26
27
28NS_HIVE_BEGIN
29
30
31class ResultAPI;
32enum class ZoneType;
33enum class HIVELanguage;
34enum class HiveThemeType;
35enum class HiveConfigType;
36class Tracker;
37
38
49class HIVESDK_DLLEXPORT Configuration {
50
51public:
52
71 typedef std::function<void(ResultAPI const & result,std::string value)> onGetMetaData;
72 typedef std::function<void(ResultAPI const& result, const char* value)> onGetMetaDataChar;
73
74 static std::string getConfiguration();
75
76
89 static std::string getHiveSDKVersion();
90
91
104 static std::string getReferenceSDKVersion();
105
106
120 static std::string getAppId();
121
122
136 static void setAppId(std::string appId);
137
138
139 static std::string getHiveCertificationKey();
140 static void setHiveCertificationKey(std::string appKey);
141
142
154
155
166 static void setZone(ZoneType zone);
167
168
181 static std::string getServerId();
182
183
196 static void setServerId(std::string serverId);
197
210 static void updateServerId(std::string serverId);
211
212
229 static void setGameLanguage(std::string language);
230
247 static void updateGameLanguage(std::string language);
248
249
260 static bool getUseLog();
261
262
273 static void setUseLog(bool useLog);
274
275
284 static std::string getCompany();
285
286
297 static void setCompany(std::string company);
298
307 static std::string getCompanyIndex();
308
309
320 static void setCompanyIndex(int companyIndex);
321
322
333 static std::string getChannel();
334
335
346 static void setChannel(std::string channel);
347
348
349
361
362
373 static void setHttpConnectTimeout(int httpConnectTimeout);
374
375
386 static int getHttpReadTimeout();
387
388
399 static void setHttpReadTimeout(int httpReadTimeout);
400
401
412 static int getMaxGameLogSize();
413
414
427 static void setMaxGameLogSize(int maxGameLogSize);
428
429
440 static std::string getMarket();
441
442
453 static void setMarket(std::string market);
454
465 static std::string getHiveCountry();
466
477 static std::string getHiveTimeZone();
478
486 static unsigned int getAnalyticsSendLimit();
487
495 static void setAnalyticsSendLimit(unsigned int limit);
496
504 static unsigned int getAnalyticsQueueLimit();
505
513 static void setAnalyticsQueueLimit(unsigned int limit);
514
523
531 static void setAnalyticsSendCycleSeconds(float seconds);
532
538 static bool getAgeGateU13();
539
540
546 static void setAgeGateU13(bool ageGateU13);
547
553 static bool getAgeGateU16Agree();
554
561
567// static void setAgeGateU16Agree(bool ageGateU16Agree);
568
574 static void setHivePermissionViewOn(bool isOn);
575
583 static PermissionViewData getPermissionViewData(HIVELanguage language);
584
585
594
601 static void setHiveTheme(HiveThemeType theme);
602
609 static void setHiveOrientation(std::string orientation);
610
611
612 static void setConfigurations(HiveConfigType configType,std::string value);
613
622 static void getMetaData(std::string key, bool forceReload, onGetMetaData listener);
623
630 static void setHiveCommunityUrl(std::string url);
631
637 static void setUseHercules(bool enable);
638
645
651 static void setCrossPromotionBannerShowing(bool expose);
652
660 static void setUsePrivateBrowsingForAuth(bool use);
661
668
674 static void setEnableGameController(bool enable);
675
682
688 static void setChatConnectionTimeout(int time);
689
690
691 // Native 영역에서 호출된 요청을 처리하기 위한 플러그인 내부 코드
692 static void executeEngine(picojson::value jsonParam);
693};
694
695
702enum class ZoneType {
703
704 SANDBOX
705 , TEST
706 , REAL
707 , DEV
708
709};
710
718enum class HIVELanguage {
719 HIVELanguageDE,
720 HIVELanguageEN,
721 HIVELanguageES,
722 HIVELanguageFR,
723 HIVELanguageID,
724 HIVELanguageIT,
725 HIVELanguageJA,
726 HIVELanguageKO,
727 HIVELanguagePT,
728 HIVELanguageRU,
729 HIVELanguageTH,
730 HIVELanguageTR,
731 HIVELanguageVI,
732 HIVELanguageZHS,
733 HIVELanguageZHT,
734 HIVELanguageAR
735};
736
744enum class HiveThemeType {
745 hiveLight,
746 hiveDark
747};
748
749enum class HiveConfigType {
750 googleServerClientId,
751 googlePlayGamesServerClientId,
752 wechatSecret,
753 wechatPaymentKey,
754 adjustKey,
755 singularKey,
756 appsflyerKey,
757 airbridgeKey,
758 airbridgeAppName,
759 airbridgeSecretId,
760 airbridgeSecret
761
762};
763NS_HIVE_END // namespace hive
764
765#endif // __HIVE_CONFIGURATION_H__
766
767
This class manage HIVE SDK configuration
Definition: HIVE_Configuration.h:49
static void setAgeGateU13(bool ageGateU13)
Hive SDK AgeGateU13 적용 여부 설정
static bool getAgeGateU13()
Hive SDK AgeGateU13 적용 여부 반환
static bool getAgeGateU16Agree()
Hive SDK GDPR 국가에서 16세 미만 약관 동의 여부 반환
static HiveThemeType getHiveTheme()
Hive 커스텀 테마 값 획득
static void setHiveCommunityUrl(std::string url)
Hive CommunityUrl 설정
static bool getCrossPromotionBannerShowing()
Hive 크로스프로모션 노출 여부 반환
static void setHiveOrientation(std::string orientation)
Hive Orientation 설정
static void setHiveTheme(HiveThemeType theme)
Hive 커스텀 테마 설정
static void setEnableGameController(bool enable)
컨트롤러 사용 여부 설정
static void setHivePermissionViewOn(bool isOn)
Hive SDK GDPR 국가에서 16세 미만 약관 동의 여부 설정 (not support)
static void setUsePrivateBrowsingForAuth(bool use)
시크릿 모드 설정
static int getChatConnectionTimeout()
HiveChat 타임아웃 설정 시간 반환
static void getMetaData(std::string key, bool forceReload, onGetMetaData listener)
Game MetaData 요청
static bool getLegalGuardianConsentAgree()
Hive SDK 법정대리인 동의 여부
static void setChatConnectionTimeout(int time)
HiveChat 타임아웃 설정 시간 설정
static void setCrossPromotionBannerShowing(bool expose)
Hive 크로스프로모션 노출 여부 설정
static std::string getCompany()
Returns company.
static bool getEnableGameController()
컨트롤러 사용 여부 반환
static PermissionViewData getPermissionViewData(HIVELanguage language)
커스텀 권한고지를 위한 데이터 설정
static std::string getCompanyIndex()
Returns company index.
static void setUseHercules(bool enable)
Hercules 사용 여부 설정
Definition: HIVE_ResultAPI.h:64
static void setAnalyticsQueueLimit(unsigned int limit)
최대로 쌓을 수 있는 로그의 수
static void setServerId(std::string serverId)
Set serverId for server-specific maintenance popup support (The world value registered in the back o...
static void setMarket(std::string market)
Set market.
static void setMaxGameLogSize(int maxGameLogSize)
Set maximum number of game logs (Note: No change unless special occasion)
HIVELanguage
HIVE Platform languages supported.
Definition: HIVE_Configuration.h:718
ZoneType
Hive Platform server zone type.
Definition: HIVE_Configuration.h:702
static std::string getAppId()
Returns AppId (By default, AppId will be set to the package name in the AndroidManifest....
static int getHttpReadTimeout()
Returns the default value of HTTP Read Timeout (in seconds)
static unsigned int getAnalyticsSendLimit()
전송 주기마다 전송할 로그의 최대치.
static void setHttpConnectTimeout(int httpConnectTimeout)
Set the value of HTTP Connect Timeout (in seconds)
static void setGameLanguage(std::string language)
API to reflect language code used in game in module Just type in two lowercase letters ("en").
static bool getUseLog()
Returns whether HIVE SDK internal log is used.
static std::string getHiveSDKVersion()
Returns HIVE SDK Version.
static void setHttpReadTimeout(int httpReadTimeout)
Set the value of HTTP Read Timeout (in seconds)
static std::string getReferenceSDKVersion()
Return version of SDK referenced by HIVE SDK.
HiveThemeType
Hive theme.
Definition: HIVE_Configuration.h:744
static std::string getServerId()
Return serverId for server-specific maintenance popup support (The world value registered in the bac...
static void setAppId(std::string appId)
Set AppId (By default, AppId will be set to the package name in the AndroidManifest....
static void updateServerId(std::string serverId)
Set serverId for server-specific maintenance popup support (The world value registered in the back o...
static float getAnalyticsSendCycleSeconds()
로그 전송 주기.
static void setZone(ZoneType zone)
Set Hive Hive platform server zone.
static void setCompanyIndex(int companyIndex)
Set company.
static std::string getMarket()
Return market.
static std::string getHiveTimeZone()
HIVE 서버에서 판단한 TimeZone 정보를 반환한다.
static void setAnalyticsSendCycleSeconds(float seconds)
로그 전송 주기 설정.
static void setCompany(std::string company)
Set company.
static ZoneType getZone()
Returns Hive platform server zone.
static void setUseLog(bool useLog)
Set whether HIVE SDK internal log is used.
static void updateGameLanguage(std::string language)
API to reflect language code used in game in module Just type in two lowercase letters ("en").
static std::string getHiveCountry()
HIVE 서버에서 판단한 국가코드를 반환한다.
std::function< void(ResultAPI const &result, std::string value)> onGetMetaData
MetaData request result callback
Definition: HIVE_Configuration.h:71
static int getHttpConnectTimeout()
Returns the default value of HTTP Connect Timeout (in seconds)
static std::string getChannel()
Returns channel.
static int getMaxGameLogSize()
Returns maximum number of game logs.
static void setAnalyticsSendLimit(unsigned int limit)
전송 주기마다 전송할 로그의 최대치 설정.
static unsigned int getAnalyticsQueueLimit()
최대로 쌓을수 있는 로그의 양.
static void setChannel(std::string channel)
Set channel.
@ TEST
Hive 플랫폼 서버 내부 개발
@ SANDBOX
Hive 플랫폼 서버 외부 개발
@ REAL
Hive 플랫폼 서버 실서비스
@ DEV
Hive 플랫폼 서버 내부 개발
Copyright © Com2uS Platform Corporation. All Right Reserved. Terms of Use Privacy Policy