Gamebase SDK for Unity 2.69.0
Toast Gamebase Platform
Loading...
Searching...
No Matches

◆ GetCountryCode()

static string GetCountryCode ( )
static

Gets the country code.

First, get the country code set in USIM, and if there is no USIM, get the country code set in the device.

Since
Added 1.4.0.
Returns
The country code.

Example Usage :

public void GetCountryCodeSample()
{
string countryCode = Gamebase.GetCountryCode();
Debug.Log(string.Format("countryCode:{0}", countryCode));
}
static string GetCountryCode()
Gets the country code.
Definition Gamebase.cs:1881
The Gamebase class is core of Gamebase service.
Definition Gamebase.cs:11