16.1. System Information SDK Example
16.1. System Information SDK Example
16.1.1. Retrieving language code
The language setting information in the device is retrieved. The language code returns a value in accordance with the ISO 639-1 codes.
Unity
using Kakaogame.SDK;
string languageCode = KGSystem.languageCode; |
Android
String languageCode = KGSystem.getLanguageCode(); |
iOS
#import <KakaoGame/KakaoGame.h>
NSString *languageCode = [KGSystem languageCode]; |
Windows
Unreal
16.1.2 Retrieving language tag
The language setting information in the device is retrieved. The language tag returns a value in accordance with the BCP-47 codes. (SDK 3.17.5 or higher)
Unity
Android
iOS
Windows
Unreal
16.1.3. Retrieving country code
Devices supporting 3g/LTE return a country code issued by the communication module. WIFI-only devices return a country code set in the device. (SDK 3.7.0 or higher) For wifi-only devices, the country code is collected based on GeoIP. If it fails to import GeoIP, it will be collected as the country information of the device.
The country code is in accordance with the ISO 3166-1 alpha-2 code, and returns
zz
if there is no country informationThe country code set in the first app execution will remain. If the app or app information is deleted, the country code is re-set
Unity
Android
iOS
Windows
Unreal
16.1.4. Getting Device ID
Device ID returns a value which is used to identify the device. It changes when the device is reset.
Unity
Android
iOS
Windows
Unreal
16.1.5. Getting Device Model
The model information of the current device is returned.
Unity
Android
iOS
Windows
Unreal
16.1.6. Getting OS name
The name of OS (android/ios) of the current device is returned.
Unity
Android
iOS
Windows
Unreal
16.1.7. Getting network connection status
Shows whether the current device is connected to an external network.
Unity
Android
iOS
Windwos
Unreal
16.1.8. Get connected network type
Shows what type of external network is connected to the current device. (wifi/cellular/unknown)
Unity
Android
iOS
Windows
Unreal