This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
app_methods:setorientation [2015/03/26 19:21] madlyr [app.SetOrientation] |
app_methods:setorientation [2015/03/26 19:25] madlyr |
||
---|---|---|---|
Line 2: | Line 2: | ||
//(Samples taken from the Droidscript documentation)// | //(Samples taken from the Droidscript documentation)// | ||
< | < | ||
- | |||
====Example==== | ====Example==== | ||
- | |||
<code javascript> | <code javascript> | ||
function OnStart() | function OnStart() | ||
Line 24: | Line 22: | ||
</ | </ | ||
- | =====app.GetOrientation===== | + | =====GetOrientation===== |
- | The **GetOrientation** method gets the current orientation of the phone/ | + | |
+ | The **GetOrientation** method gets the current orientation of the phone/ | ||
+ | < | ||
+ | ====Example==== | ||
<code javascript> | <code javascript> | ||
function OnStart() | function OnStart() | ||
Line 33: | Line 34: | ||
} | } | ||
</ | </ | ||
- | =====app.GetDefaultOrientation===== | + | |
+ | =====GetDefaultOrientation===== | ||
The **GetDefaultOrientation** method gets the default (normal) orientation of the device. It will return either the value " | The **GetDefaultOrientation** method gets the default (normal) orientation of the device. It will return either the value " | ||
+ | < | ||
+ | ====Example==== | ||
<code javascript> | <code javascript> | ||
function OnStart() | function OnStart() |