Table of Contents

Application:getDeviceOrientation

Available since version: Gideros 2014.01

Description:

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

Syntax:

(string) = Application:getDeviceOrientation()

Return value:

  • string: Values "portrait", "portraitUpsideDown", "landscapeLeft", "landscapeRight"