Back

GetDefaultOrientation

GetDefaultOrientation returns the default orientation of the device.

app.GetDefaultOrientation() -> string - "Landscape" or "Portrait"

Example - Example



function OnStart()
{
    orient = app.GetDefaultOrientation();
    app.ShowPopup( orient );
}
    Copy     Copy All       Run