This site permanently moved to
https://droidscript.github.io
. Please update links accordingly.
You are being forwarded automatically in 3...
[stay here]
Back
IsScreenOn
Hello World
Checks if the device screen is currently on.
app.IsScreenOn() →
Boolean
Example - Check Screen On
click to expand contents
function
OnStart
(
)
{
app
.
ShowPopup
(
"You may now disable your screen."
)
setTimeout
(
checkScreenOn
,
5000
)
;
}
function
checkScreenOn
(
)
{
screenOn
=
app
.
IsScreenOn
(
)
;
app
.
ShowPopup
(
screenOn
,
"Screen On:"
)
;
}
Copy
Copy All
Run
loading