×
A new build of Corona SDK is now available to subscribers. Not a subscriber? Subscribe now.
CoronaSDK 2014.2282 | Released: 24 Apr 2014, 1:00pm | What's New | Download Now

event.type

Description:

A string identifying the new orientation of the device with one of the following values:

  • "portrait"
  • "landscapeLeft"
  • "portraitUpsideDown"
  • "landscapeRight"
  • "faceUp"
  • "faceDown"
Syntax:

event.type

Example:

 

Parameters:

None.

Returns:

Nothing.

Remarks:
Supported on operating systems and platforms for build numbers shown:
  • Mac OS X:
    Corona SDK 1.0
  • Windows:
    Corona SDK 2.0
  • iOS:
    Corona SDK 1.0
  • Android:
    --