Back
IsPortrait
Hello World
Checks if the device is in portrait mode.
app.IsPortrait() →
Boolean
Example - Check Portrait
function
OnStart
(
)
{
var
isPortrait
=
app
.
IsPortrait
(
)
;
app
.
Alert
(
isPortrait
,
"is Portrait:"
)
;
}
Copy
Copy All
Run