Back

GetDefaultOrientation

The GetDefaultOrientation method gets the default (normal) orientation of the device. It will return either the value "Portrait" or the value "Landscape"

 orient = app.GetDefaultOrientation();

See also GetOrientation, SetOrientation

Example

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