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 void setHivePermissionViewOn(bool isOn);
554
562 static PermissionViewData getPermissionViewData(HIVELanguage language);
563
564
573
580 static void setHiveTheme(HiveThemeType theme);
581
588 static void setHiveOrientation(std::string orientation);
589
590
591 static void setConfigurations(HiveConfigType configType,std::string value);
592
601 static void getMetaData(std::string key, bool forceReload, onGetMetaData listener);
602
609 static void setHiveCommunityUrl(std::string url);
610
616 static void setUseHercules(bool enable);
617
618
619 // Native 영역에서 호출된 요청을 처리하기 위한 플러그인 내부 코드
620 static void executeEngine(picojson::value jsonParam);
621};
622
623
630enum class ZoneType {
631
632 SANDBOX
633 , TEST
634 , REAL
635 , DEV
636
637};
638
646enum class HIVELanguage {
647 HIVELanguageDE,
648 HIVELanguageEN,
649 HIVELanguageES,
650 HIVELanguageFR,
651 HIVELanguageID,
652 HIVELanguageIT,
653 HIVELanguageJA,
654 HIVELanguageKO,
655 HIVELanguagePT,
656 HIVELanguageRU,
657 HIVELanguageTH,
658 HIVELanguageTR,
659 HIVELanguageVI,
660 HIVELanguageZHS,
661 HIVELanguageZHT,
662 HIVELanguageAR
663};
664
672enum class HiveThemeType {
673 hiveLight,
674 hiveDark
675};
676
677enum class HiveConfigType {
678 googleServerClientId,
679 wechatSecret,
680 wechatPaymentKey,
681 adjustKey,
682 adjustSecretId,
683 adjustInfo1,
684 adjustInfo2,
685 adjustInfo3,
686 adjustInfo4,
687 singularKey,
688 appsflyerKey
689
690};
691NS_HIVE_END // namespace hive
692
693extern "C"
694{
695 HIVESDK_DLLEXPORT const char* ConfigurationGetConfigurationJsonString();
696 HIVESDK_DLLEXPORT void ConfigurationSetConfigurations(hive::HiveConfigType configType, const char* value);
697
698 HIVESDK_DLLEXPORT const char* ConfigurationGetCompany();
699 HIVESDK_DLLEXPORT const char* ConfigurationGetHIVECountry();
700 HIVESDK_DLLEXPORT const char* ConfigurationGetChannel();
701 HIVESDK_DLLEXPORT void ConfigurationSetChannel(const char* channel);
702 HIVESDK_DLLEXPORT void ConfigurationSetGameLanguage(const char* language);
703 HIVESDK_DLLEXPORT void ConfigurationUpdateGameLanguage(const char* newValue);
704 HIVESDK_DLLEXPORT const char* ConfigurationGetHIVESDKVersion();
705 HIVESDK_DLLEXPORT const char* ConfigurationGetReferenceSDKVersion();
706 HIVESDK_DLLEXPORT const char* ConfigurationGetAppId();
707 HIVESDK_DLLEXPORT void ConfigurationSetAppId(const char* appId);
708 HIVESDK_DLLEXPORT const char* ConfigurationGetServerId();
709 HIVESDK_DLLEXPORT void ConfigurationSetServerId(const char* serverId);
710 HIVESDK_DLLEXPORT void ConfigurationUpdateServerId(const char* serverId);
711 HIVESDK_DLLEXPORT const char* ConfigurationGetMarket();
712 //4.15.8 Add
713 HIVESDK_DLLEXPORT void ConfigurationGetMetaData(const char* key, bool forceReload, hive::Configuration::onGetMetaDataChar listener);
714}
715
716
717#endif // __HIVE_CONFIGURATION_H__
718
719
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 HiveThemeType getHiveTheme()
Hive 커스텀 테마 값 획득
static void setHiveCommunityUrl(std::string url)
Hive CommunityUrl 설정
static void setHiveOrientation(std::string orientation)
Hive Orientation 설정
static void setHiveTheme(HiveThemeType theme)
Hive 커스텀 테마 설정
static void setHivePermissionViewOn(bool isOn)
Hive SDK 권한고지 팝업 노출 여부 설정
static void getMetaData(std::string key, bool forceReload, onGetMetaData listener)
Game MetaData 요청
static std::string getCompany()
Returns company.
static PermissionViewData getPermissionViewData(HIVELanguage language)
커스텀 권한고지를 위한 데이터 설정
static std::string getCompanyIndex()
Returns company index.
static void setUseHercules(bool enable)
Hercules 사용 여부 설정
Definition: HIVE_ResultAPI.h:63
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:646
ZoneType
Hive Platform server zone type.
Definition: HIVE_Configuration.h:630
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:672
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