===== 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
rot = app.GetRotation();
See also [[app_methods:setorientation|GetOrientation]]
----
==== Example ====
function OnStart()
{
rot = app.GetRotation();
app.ShowPopup( rot );
}