16.1. System Information SDK Example
...
16.1.1. Retrieving language code
...
코드 블럭 |
---|
#import <KakaoGame/KakaoGame.h>
NSString *networkType = [KGSystem networkType]; |
|
Windwos
코드 블럭 |
---|
#include "KakaoGameLib.h"
KakaoGame::SDK::KGSystem kgSystem;
bool networkConnected = kgSystem.isNetworkConnected(); |
|
Unreal
코드 블럭 |
---|
#include "KakaoGame.h"
bool isNetworkConnected = FKGSystem::IsNetworkConnected(); |
|
16.1.8. Get connected network type
Shows what type of external network is connected to the current device. (wifi/cellular/unknown)
Unity
코드 블럭 |
---|
using Kakaogame.SDK;
string networkType = KGSystem.networkType; |
|
Android
코드 블럭 |
---|
String networkType = KGSystem.getNetworkType(); |
|
iOS
코드 블럭 |
---|
#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(); |
|