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
223 static std::string getGameLanguage();
224
241 static void setGameLanguage(std::string language);
242
259 static void updateGameLanguage(std::string language);
260
261
272 static bool getUseLog();
273
274
285 static void setUseLog(bool useLog);
286
287
296 static std::string getCompany();
297
298
309 static void setCompany(std::string company);
310
319 static std::string getCompanyIndex();
320
321
332 static void setCompanyIndex(int companyIndex);
333
334
345 static std::string getChannel();
346
347
358 static void setChannel(std::string channel);
359
360
361
373
374
385 static void setHttpConnectTimeout(int httpConnectTimeout);
386
387
398 static int getHttpReadTimeout();
399
400
411 static void setHttpReadTimeout(int httpReadTimeout);
412
413
424 static int getMaxGameLogSize();
425
426
439 static void setMaxGameLogSize(int maxGameLogSize);
440
441
452 static std::string getMarket();
453
454
465 static void setMarket(std::string market);
466
477 static std::string getHiveCountry();
478
489 static std::string getHiveTimeZone();
490
498 static unsigned int getAnalyticsSendLimit();
499
507 static void setAnalyticsSendLimit(unsigned int limit);
508
516 static unsigned int getAnalyticsQueueLimit();
517
525 static void setAnalyticsQueueLimit(unsigned int limit);
526
535
543 static void setAnalyticsSendCycleSeconds(float seconds);
544
550 static bool getAgeGateU13();
551
552
558 static void setAgeGateU13(bool ageGateU13);
559
565 static bool getAgeGateU16Agree();
566
573
579// static void setAgeGateU16Agree(bool ageGateU16Agree);
580
586 static void setHivePermissionViewOn(bool isOn);
587
595 static PermissionViewData getPermissionViewData(HIVELanguage language);
596
597
606
613 static void setHiveTheme(HiveThemeType theme);
614
621 static void setHiveOrientation(std::string orientation);
622
629 static void setConfigurations(HiveConfigType configType,std::string value);
630
639 static void getMetaData(std::string key, bool forceReload, onGetMetaData listener);
640
647 static void setHiveCommunityUrl(std::string url);
648
654 static void setUseHercules(bool enable);
655
662
668 static void setCrossPromotionBannerShowing(bool expose);
669
677 static void setUsePrivateBrowsingForAuth(bool use);
678
685
691 static void setEnableGameController(bool enable);
692
699
705 static void setChatConnectionTimeout(int time);
706
707
708 // Native 영역에서 호출된 요청을 처리하기 위한 플러그인 내부 코드
709 static void executeEngine(picojson::value jsonParam);
710
711private:
712 friend class HiveTestUtils;
713 static void setTestZone();
714 static bool isTestZone();
715};
716
717
724enum class ZoneType {
725
726 SANDBOX
727 , REAL
728
729};
730
738enum class HIVELanguage {
739 HIVELanguageDE,
740 HIVELanguageEN,
741 HIVELanguageES,
742 HIVELanguageFR,
743 HIVELanguageID,
744 HIVELanguageIT,
745 HIVELanguageJA,
746 HIVELanguageKO,
747 HIVELanguagePT,
748 HIVELanguageRU,
749 HIVELanguageTH,
750 HIVELanguageTL,
751 HIVELanguageTR,
752 HIVELanguageVI,
753 HIVELanguageZHS,
754 HIVELanguageZHT,
755 HIVELanguageAR
756};
757
765enum class HiveThemeType {
766 hiveLight,
767 hiveDark
768};
769
777enum class HiveConfigType {
778 googleServerClientId,
779 googlePlayGamesServerClientId,
780 wechatSecret,
781 wechatPaymentKey,
782 adjustKey,
783 singularKey,
784 appsflyerKey,
785 airbridgeKey,
786 airbridgeAppName,
787 airbridgeSecretId,
788 airbridgeSecret,
789 dmmSecretKey,
790 dmmClientId,
791 dmmClientSecret
792};
793NS_HIVE_END // namespace hive
794
795#endif // __HIVE_CONFIGURATION_H__
796
797
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 setConfigurations(HiveConfigType configType, std::string value)
Hive 민감 정보 설정
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)
static std::string getGameLanguage()
Gets the current language code setting.
HIVELanguage
HIVE Platform languages supported.
Definition: HIVE_Configuration.h:738
ZoneType
Hive Platform server zone type.
Definition: HIVE_Configuration.h:724
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:765
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.
HiveConfigType
Hive sensitive data type.
Definition: HIVE_Configuration.h:777
static void setAnalyticsSendLimit(unsigned int limit)
전송 주기마다 전송할 로그의 최대치 설정.
static unsigned int getAnalyticsQueueLimit()
최대로 쌓을수 있는 로그의 양.
static void setChannel(std::string channel)
Set channel.
@ SANDBOX
Hive 플랫폼 서버 외부 개발
@ REAL
Hive 플랫폼 서버 실서비스
Copyright © Com2uS Platform Corporation. All Right Reserved. Terms of Use Privacy Policy