Gamebase SDK for Unity 2.74.0 Toast Gamebase Platform

Loading...
Searching...
No Matches

## ◆ GetDeviceLanguageCode()

static string GetDeviceLanguageCode | ( |  | ) |
| static

Gets the language code set for the current device.

Since
  Added 1.14.0.

Returns
  The language code that is currently set.

Example Usage :

public void GetDeviceLanguageCodeSample()
{
string languageCode = Gamebase.GetDeviceLanguageCode();
Debug.Log(string.Format("languageCode:{0}", languageCode));
}
Toast.Gamebase.Gamebase.GetDeviceLanguageCode
static string GetDeviceLanguageCode()
Gets the language code set for the current device.
Definition: Gamebase.cs:1848
Toast.Gamebase.Gamebase
The Gamebase class is core of Gamebase service.
Definition: Gamebase.cs:11