Back
IsLocationEnabled
Hello World
Checks if a specific location mode was enabled.
app.IsLocationEnabled(
mode
) →
Boolean
See Also:
CreateLocator
Example - Check Locatoin Enabled
click to expand contents
function
OnStart
(
)
{
var
locEnabled
=
app
.
IsLocationEnabled
(
)
;
app
.
Alert
(
locEnabled
,
"Location Enabled:"
)
;
}
Copy
Copy All
Run
String:
“GPS”
or
“Network”
loading