Titanium.Gesture.orientationchange

Event of Titanium.Gesture.
Platform Since
Android 0.8
iPhone 0.8
iPad 0.8
Mobile Web 1.8

Summary

fired when the device orientation changes

Properties

Properties of the object passed to the event callback:
Name Type Summary
orientation Number

Orientation of the current window. Value will be one of the following - Titanium.UI.PORTRAIT, Titanium.UI.UPSIDE_PORTRAIT, Titanium.UI.LANDSCAPE_LEFT, Titanium.UI.LANDSCAPE_RIGHT or Titanium.UI.UNKNOWN

source Object

Source object that fired the event.

type String

Name of the event fired.