Application:getDeviceOrientation

From GiderosMobile
Revision as of 00:51, 3 December 2019 by MoKaLux (talk | contribs)

Available since: Gideros 2014.01
Class: Application

Description

Get the device orientation (and not what is that in project properties as done with getOrientation).Check Accelerometer example project for usage.

(string) = application:getDeviceOrientation()

Return values

Returns (string) Values "portrait", "portraitUpsideDown", "landscapeLeft", "landscapeRight"