This class manage HIVE SDK configuration
More...
Classes | |
class | HIVEConfiguration |
This class manages HIVE SDK configuration. More... | |
Functions | |
typedef | NS_ENUM (NSInteger, HIVEZoneType) |
HIVE Platform server zone type. More... | |
typedef | NS_ENUM (NSInteger, HIVECustomUIType) |
HIVE Platform customUI type. More... | |
typedef | NS_ENUM (NSInteger, HIVELanguage) |
HIVE Platform languages supported. More... | |
(NSString *) | + HIVEConfiguration::getHiveSDKVersion |
Returns the version of HIVE SDK. More... | |
(NSString *) | + HIVEConfiguration::getReferenceSDKVersion |
Returns the version of SDK referenced by HIVE SDK. More... | |
(NSString *) | + HIVEConfiguration::getAppId |
Returns AppId (By default, AppId is set to the package name in the AndroidManifest.xml file. More... | |
(void) | + HIVEConfiguration::setAppId: |
Set AppId (By default, AppId will be set to the package name in the AndroidManifest.xml file. More... | |
(HIVEZoneType) | + HIVEConfiguration::getZone |
Returns HIVE platform server zone. More... | |
(void) | + HIVEConfiguration::setZone: |
Sets HIVE platform server zone. More... | |
(NSString *) | + HIVEConfiguration::getServerId |
Return serverId for server-specific maintenance popup support (The world value registered in the back office world management) More... | |
(void) | + HIVEConfiguration::setServerId: |
Sets serverId for server-specific maintenance popup support (The world value registered in the back office world management should be inputted according to the server.) More... | |
(NSString *) | + HIVEConfiguration::setGameLanguage: |
API to reflect language code used in game in module Just type in two lowercase letters ("en"). More... | |
(BOOL) | + HIVEConfiguration::getUseLog |
Returns whether HIVE SDK internal log is used. More... | |
(void) | + HIVEConfiguration::setUseLog: |
Sets whether HIVE SDK internal log is used. More... | |
(NSInteger) | + HIVEConfiguration::getHttpConnectTimeout |
Returns the default value of HTTP Connect Timeout (in seconds) More... | |
(NSInteger) | + HIVEConfiguration::getHttpReadTimeout |
Returns the default value of HTTP Read Timeout (in seconds) More... | |
(void) | + HIVEConfiguration::setHttpConnectTimeout: |
Sets the value of HTTP Connect Timeout (in seconds) More... | |
(void) | + HIVEConfiguration::setHttpReadTimeout: |
Sets the value of HTTP Read Timeout (in seconds) More... | |
(NSInteger) | + HIVEConfiguration::getMaxGameLogSize |
Returns maximum number of game logs. More... | |
(void) | + HIVEConfiguration::setMaxGameLogSize: |
Sets maximum number of game logs (Note: No change unless special occasion) More... | |
(NSString *) | + HIVEConfiguration::getMarket |
Returns market. More... | |
(void) | + HIVEConfiguration::setMarket: |
Sets market. More... | |
(NSString *) | + HIVEConfiguration::getChannel |
Returns channel. More... | |
(void) | + HIVEConfiguration::setChannel: |
Set channel. More... | |
(NSDictionary *) | + HIVEConfiguration::getUseCustomUI |
Returns whether HIVE SDK custom UI is used. More... | |
(void) | + HIVEConfiguration::setCustomUI: |
Sets whether HIVE SDK custom UI is used. More... | |
(void) | + HIVEConfiguration::setCompany: |
Sets company. More... | |
(void) | + HIVEConfiguration::setCompanyIndex: |
Sets company index. More... | |
(NSString *) | + HIVEConfiguration::getHiveCountry |
Returns country code from HIVE server. More... | |
This class manage HIVE SDK configuration
+ (NSString *) getAppId |
Returns AppId (By default, AppId is set to the package name in the AndroidManifest.xml file.
AppId 반환 (AppId 는 기본적으로 AndroidManifest.xml 파일의 package 값으로 설정하게 된다.
However, it supports changes to API calls for reasons such as test setup.)
그러나 테스트 설정등의 이유로 API 호출에 대한 변경을 지원한다.)
+ (NSString *) getChannel |
Returns channel.
채널 반환
+ (NSString *) getHiveCountry |
Returns country code from HIVE server.
매번 현재 게임 언어의 설정 값을 기준으로 값을 얻어옴.
저장된 HIVE Country값을 리턴한다. (ISO 표준 국가코드)
+ (NSString *) getHiveSDKVersion |
Returns the version of HIVE SDK.
Hive SDK 버전 반환
+ (NSInteger) getHttpConnectTimeout |
Returns the default value of HTTP Connect Timeout (in seconds)
HTTP Timeout 의 기본 설정 값 반환 (초단위)
+ (NSInteger) getHttpReadTimeout |
Returns the default value of HTTP Read Timeout (in seconds)
+ (NSString *) getMarket |
Returns market.
결제 마켓 반환
+ (NSInteger) getMaxGameLogSize |
Returns maximum number of game logs.
게임 로그 최대 저장 갯수 반환
+ (NSString *) getReferenceSDKVersion |
Returns the version of SDK referenced by HIVE SDK.
+ (NSString *) getServerId |
Return serverId for server-specific maintenance popup support
(The world value registered in the back office world management)
서버별 점검공지 팝업지원을 위한 serverId 반환 (백오피스 월드관리에 등록된 월드값을 서버에 따라 구분하여 입력이 되어야 한다.)
+ (NSDictionary *) getUseCustomUI |
Returns whether HIVE SDK custom UI is used.
Hive SDK custom UI 사용 여부 반환
+ (BOOL) getUseLog |
Returns whether HIVE SDK internal log is used.
Hive SDK 내부 로그 사용 여부 반환
+ (HIVEZoneType) getZone |
Returns HIVE platform server zone.
Hive 플랫폼 서버 존 반환
typedef NS_ENUM | ( | NSInteger | , |
HIVEZoneType | |||
) |
HIVE Platform server zone type.
< HIVE Platform internal test server
< HIVE Platform external test server
< HIVE Platform common server
< TODO:
typedef NS_ENUM | ( | NSInteger | , |
HIVECustomUIType | |||
) |
HIVE Platform customUI type.
< SignIn custom UI
< Connect custom UI
< Achievement custom UI
< SyncAccount customUI
typedef NS_ENUM | ( | NSInteger | , |
HIVELanguage | |||
) |
HIVE Platform languages supported.
+ (void) setAppId: | (NSString*) | appId |
Set AppId (By default, AppId will be set to the package name in the AndroidManifest.xml file.
AppId 설정 (AppId 는 기본적으로 AndroidManifest.xml 파일의 package 값으로 설정하게 된다.
However, it supports changes to API calls for reasons such as test setup.)
appId | AppId |
그러나 테스트 설정등의 이유로 API 호출에 대한 변경을 지원한다.)
appId | AppId |
+ (void) setChannel: | (NSString*) | channel |
Set channel.
채널 설정
Channel | (HIVE: HIVE Platform) |
채널 | (C2S, LIN, KAK) |
+ (void) setCompany: | (NSString*) | company |
Sets company.
회사 설정
Company | (COM2US: Com2us, GAMEVIL: Gamevil) |
+ (void) setCompanyIndex: | (NSInteger) | companyIndex |
Sets company index.
회사 인덱스 설정
CompanyIndex | (COM2US: 1, GAMEVIL: 2...) |
+ (void) setCustomUI: | (NSDictionary *) | useCustomUI |
Sets whether HIVE SDK custom UI is used.
useCustomUI | Whether HIVE SDK custom UI is used |
+ (NSString *) setGameLanguage: | (NSString*) | gameLanguage |
API to reflect language code used in game in module
Just type in two lowercase letters ("en").
현재 게임 언어을 하이브 플랫폼에 알려주는 API
ISO 639-1 format.
Internally, uppercase characters are converted to lowercase characters. Alphabetic case rules follow US rules.
language | Language code used in game. |
gameLanugage | ISO 639 alpha-2 형태의 설정하고자 하는 언어 코드 |
gameLanguage 값을 가지고 하이브에서 지원하는 언어로 매핑하여, 그 값을 돌려준다.
리턴 값은 nil 일 수 없다. 예외 상황이 발생할 경우 기본언어("en")를 리턴한다. redmine.com2us.com/issues/6132#note-10
+ (void) setHttpConnectTimeout: | (NSInteger) | httpTimeout |
Sets the value of HTTP Connect Timeout (in seconds)
HTTP Timeout 의 기본 설정 값 설정 (초단위)
Value | of HTTP Connect Timeout (in seconds) |
httpTimeout | HTTP Timeout 의 기본 설정 값 (초단위) |
+ (void) setHttpReadTimeout: | (NSInteger) | httpTimeout |
Sets the value of HTTP Read Timeout (in seconds)
Value | of HTTP Read Timeout (in seconds) |
+ (void) setMarket: | (NSString*) | market |
Sets market.
결제 마켓 설정
market | Market (google, tstore, olleh, ozstore, googleplay_lebi) |
market | 결제 마켓 (google, tstore, olleh, ozstore, googleplay_lebi) |
+ (void) setMaxGameLogSize: | (NSInteger) | maxGameLogSize |
Sets maximum number of game logs (Note: No change unless special occasion)
게임 로그 최대 저장 갯수 설정 (특별한 경우가 아니면 변경 금지)
maxGameLogSize | Maximum number of game logs |
maxGameLogSize | 게임 로그 최대 저장 갯수 |
+ (void) setServerId: | (NSString*) | serverId |
Sets serverId for server-specific maintenance popup support
(The world value registered in the back office world management should be inputted according to the server.)
서버별 점검공지 팝업지원을 위한 serverId 설정 (백오피스 월드관리에 등록된 월드값을 서버에 따라 구분하여 입력이 되어야 한다.)
serverId | for server-specific maintenance popup support |
서버별 | 점검공지 팝업지원을 위한 serverId |
+ (void) setUseLog: | (BOOL) | useLog |
Sets whether HIVE SDK internal log is used.
Hive SDK 내부 로그 사용 여부 설정
useLog | Whether HIVE SDK internal log is used |
useLog | Hive SDK 내부 로그 사용 여부 |
+ (void) setZone: | (HIVEZoneType) | zone |
Sets HIVE platform server zone.
zone | HIVE platform server zone (sandbox: for development, real: for production) |