Titanium.Gesture
Properties
- LANDSCAPE
- Device is rotated 90 degrees to the left of portrait.
- LANDSCAPE_LEFT
- Device is rotated 90 degrees to the left of portrait. Same as LANDSCAPE
- LANDSCAPE_RIGHT
- Device is rotated 90 degrees to the right of portrait. Not reported on Android.
- PORTRAIT
- Portrait orientation
- UPSIDE_PORTRAIT
- Not reported on Android. Device rotated 180 degrees from portrait.
Methods
- addEventListener ( eventName, listener )
- Listen for Gesture events. currently supported events are 'orientationchange' and 'shake'
- isLandscape ( orientation )
- Helper method to determine if device is in any landscape position.
- isPortrait ( orientation )
- Helper method to determine if device is in any portrait position.
- removeEventListener ( eventName, listenerId )
- Remove gesture event listener.
Objects
No objects.
Titanium Mobile Dev Center