Back

IsPortrait

JS Py
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:" );
}
from native import app

def OnStart():
    isPortrait = app.IsPortrait()
    app.Alert(isPortrait, "is Portrait:")
    Copy     Copy All       Run