Back

IsLocationEnabled

Hello World

Checks if a specific location mode was enabled.

app.IsLocationEnabled( mode ) → boolean

See Also: CreateLocator

Example - Check Locatoin Enabled

function OnStart()
{
    var locEnabled = app.IsLocationEnabled();
    app.Alert( locEnabled, "Location Enabled:" );
}
    Copy     Copy All       Run      
string: “GPS” or “Network”