This site permanently moved to
https://droidscript.github.io
. Please update links accordingly.
You are being forwarded automatically in 3...
[stay here]
Back
IsPortrait
JS
Py
Hello World
Checks if the device is in portrait mode.
app.IsPortrait() →
Boolean
Example - Check Portrait
click to expand contents
function
OnStart
(
)
{
var
isPortrait
=
app
.
IsPortrait
(
)
;
app
.
Alert
(
isPortrait
,
"is Portrait:"
)
;
}
from
native
import
app
def
OnStart
(
)
:
isPortrait
=
app
.
IsPortrait
(
)
app
.
Alert
(
isPortrait
,
"is Portrait:"
)
Copy
Copy All
Run
loading