Chuyển tới nội dung chính

Thiết lập/Lấy (Set/Get) từ Config

Lấy Device ID Gọi phương thức get_DeviceID để lấy device ID từ IOS

       NSString * DeviceID = [[DZOSDKCoreKit sharedInstance] get_DeviceID];
NSLog(@"Device ID - %@", DeviceID);

Thiết lập/Lấy (Set/Get) GameServerID: Để thiết lập ServerGame cho Đăng nhập hoặc chuyển đổi Server game từ màn hình Game

       [[DZOSDKCoreKit sharedInstance] set_serverGameID:2];
int i_ServerID = [[DZOSDKCoreKit sharedInstance] get_serverGameID];
NSLog(@"Servergame ID - %i", i_ServerID);

Lấy Token SDK sau khi Đăng nhập game thành công: Gọi phương thức get_tokenSDK để lấy Token SDK

       NSString * s_Token = [[DZOSDKCoreKit sharedInstance] get_tokenSDK];
NSLog(@"Token SDK - %@", s_Token);