Gamebase SDK for Unity 2.76.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));
}
Toast.Gamebase.Gamebase.GetCountryCode
static string GetCountryCode()
Gets the country code.
Definition Gamebase.cs:1910
Toast.Gamebase.Gamebase
The Gamebase class is core of Gamebase service.
Definition Gamebase.cs:11