...
코드 블럭 |
---|
#import <KakaoGame/KakaoGame.h>
NSString *languageCode = [KGSystem languageCode]; |
|
Windows
코드 블럭 |
---|
#include "KakaoGameLib.h"
KakaoGame::SDK::KGSystem kgSystem;
std::wstring languageCode = kgSystem.getLanguageCode();
|
|
Unreal
코드 블럭 |
---|
#include "KakaoGame.h"
FString languageCode = FKGSystem::GetLanguageCode(); |
|
16.1.2. Retrieving country code
...
코드 블럭 |
---|
#import <KakaoGame/KakaoGame.h>
NSString *countryCode = [KGSystem countryCode]; |
|
Windows
코드 블럭 |
---|
#include "KakaoGameLib.h"
KakaoGame::SDK::KGSystem kgSystem;
std::wstring countryCode = kgSystem.getCountryCode();
|
|
Unreal
코드 블럭 |
---|
#include "KakaoGame.h"
FString countryCode = FKGSystem::GetCountryCode(); |
|
16.1.3. Getting Device ID
...
코드 블럭 |
---|
#import <KakaoGame/KakaoGame.h>
NSString *deviceId = [KGSystem deviceId]; |
|
Windows
코드 블럭 |
---|
#include "KakaoGameLib.h"
KakaoGame::SDK::KGSystem kgSystem;
std::wstring deviceId = kgSystem.getDeviceId();
|
|
Unreal
코드 블럭 |
---|
#include "KakaoGame.h"
FString deviceId = FKGSystem::GetDeviceId(); |
|
16.1.4. Getting Device Model
...
코드 블럭 |
---|
#import <KakaoGame/KakaoGame.h>
NSString *deviceModel = [KGSystem deviceModel]; |
|
Windows
코드 블럭 |
---|
#include "KakaoGameLib.h"
KakaoGame::SDK::KGSystem kgSystem;
std::wstring deviceModel = kgSystem.getDeviceModel();
|
|
Unreal
코드 블럭 |
---|
#include "KakaoGame.h"
FString deviceModel = FKGSystem::GetDeviceModel(); |
|
16.1.5. Getting OS name
The name of OS (android/ios) of the current device is returned.
...
코드 블럭 |
---|
#import <KakaoGame/KakaoGame.h>
NSString *osName = [KGSystem osName]; |
|
Windows
코드 블럭 |
---|
#include "KakaoGameLib.h"
KakaoGame::SDK::KGSystem kgSystem;
std::wstring osName = kgSystem.getOSName();
|
|
Unreal
코드 블럭 |
---|
#include "KakaoGame.h"
FString osName = FKGSystem::GetOSName(); |
|
16.1.6. Getting network connection status
...
코드 블럭 |
---|
#import <KakaoGame/KakaoGame.h>
BOOL isNetworkConnected = [KGSystem isNetworkConnected]; |
|
Windwos
코드 블럭 |
---|
#include "KakaoGameLib.h"
KakaoGame::SDK::KGSystem kgSystem;
bool networkConnected = kgSystem.isNetworkConnected();
|
|
Unreal
코드 블럭 |
---|
#include "KakaoGame.h"
bool isNetworkConnected = FKGSystem::IsNetworkConnected(); |
|
16.1.7. Get connected network type
...
코드 블럭 |
---|
#import <KakaoGame/KakaoGame.h>
NSString *networkType = [KGSystem networkType]; |
|
Windows
코드 블럭 |
---|
#include "KakaoGameLib.h"
KakaoGame::SDK::KGSystem kgSystem;
// Offline/LAN/Modem/Proxy
std::wstring networkType = kgSystem.getNetworkType();
|
|
Unreal
코드 블럭 |
---|
#include "KakaoGame.h"
FString networkType = FKGSystem::GetNetworkType(); |
|