User Tools

Site Tools


app_methods:setorientation

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision Both sides next revision
app_methods:setorientation [2015/02/22 10:03]
octazid created
app_methods:setorientation [2015/02/22 10:11]
octazid [app.GetOrientation]
Line 19: Line 19:
 { {
   orient = app.GetOrientation();   orient = app.GetOrientation();
 +  app.ShowPopup( orient );
 +}
 +</code>
 +=====app.GetDefaultOrientation=====
 +The **GetDefaultOrientation** method gets the default (normal) orientation of the device. It will return either the value "**Portrait**" or the value "**Landscape**".
 +<code javascript>
 +function OnStart()
 +{
 +  orient = app.GetDefaultOrientation();
   app.ShowPopup( orient );   app.ShowPopup( orient );
 } }
 </code> </code>
app_methods/setorientation.txt · Last modified: 2015/03/27 03:25 (external edit)