Back

GetOrientation

The GetOrientation method gets the current orientation of the phone/tablet. It will return either the value "Portrait" or the value "Landscape"

 orient = app.GetOrientation();

See also SetOrientation

Example

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