Back

GetDefaultOrientation

Hello World

Returns the default Orientation of the device.

app.GetDefaultOrientation() → string: “Portrait” or “Landscape”

The result modes can be “Portrait” if the device width is smaller than the device height, or “Landscape” vice versa.

See Also: SetOrientation, GetOrientation

Example - Show Default Orientation

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