This shows you the differences between two versions of the page.
built_in:get_rotation [2015/03/04 17:53] octazid created |
built_in:get_rotation [2019/06/18 22:08] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | =====GetRotation===== | ||
- | // | ||
- | |||
- | ====Description==== | ||
- | |||
- | The **GetRotation** method gets the current rotation of the device. It will return one of the following numeric values:- 0, 90, 180, 270 | ||
- | |||
- | < | ||
- | |||
- | See also GetOrientation | ||
- | |||
- | ---- | ||
- | |||
- | ====Example==== | ||
- | |||
- | <code javascript> | ||
- | |||
- | function OnStart() | ||
- | { | ||
- | rot = app.GetRotation(); | ||
- | app.ShowPopup( rot ); | ||
- | } | ||
- | |||
- | </ |