Back

IsLocationEnabled

JS Py
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:" );
}
from native import app

def OnStart():
    locEnabled = app.IsLocationEnabled()
    app.Alert(locEnabled, "Location Enabled:")
    Copy     Copy All       Run      
String: “GPS” or “Network”