This site permanently moved to
https://droidscript.github.io
. Please update links accordingly.
You are being forwarded automatically in 3...
[stay here]
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
click to expand contents
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”
loading