Back

GetCountryCode

JS Py
Hello World

Returns the code of the device country (ie.

app.GetCountryCode() → String

“GB” or “DE”)

See Also: GetCountry, GetLanguageCode

Example - Show Country Code

function OnStart()
{
    var code = app.GetCountryCode();
    app.Alert( code );
}
from native import app

def OnStart():
    code = app.GetCountryCode()
    app.Alert(code)
    Copy     Copy All       Run