User Tools

Site Tools


built_in:get_rotation

Differences

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

Link to this comparison view

built_in:get_rotation [2015/03/04 17:55]
octazid [Description]
built_in:get_rotation [2019/06/18 22:08]
Line 1: Line 1:
-=====GetRotation===== 
  
-//(Information and examples taken from the DroidScript documentation)// 
- 
-====Description==== 
- 
-The **GetRotation** method gets the current rotation of the device. It will return one of the following numeric values:- 0, 90, 180, 270  
- 
-<code> rot = app.GetRotation();</code> 
- 
-See also [[app_methods:setorientation|GetOrientation]] 
- 
----- 
- 
-====Example==== 
- 
-<code javascript> 
- 
-function OnStart() 
-{ 
-  rot = app.GetRotation(); 
-  app.ShowPopup( rot ); 
-} 
- 
-</code> 
built_in/get_rotation.txt ยท Last modified: 2019/06/18 22:08 (external edit)