| Platform | Since |
|---|---|
| Android | 0.8 |
| iPhone | 0.8 |
| iPad | 0.8 |
| Mobile Web | 1.8 |
The top level Gestures module. The Gesture module is responsible for high level device gestures that are device-wide.
| Name | Summary |
|---|---|
| addEventListener |
Adds the specified callback as an event listener for the named event. |
| fireEvent |
Fires a synthesized event to any registered listeners. |
| getLandscape |
Gets the value of the landscape property. (Android, iPhone, iPad only.) |
| getOrientation |
Gets the value of the orientation property. (Android, iPhone, iPad only.) |
| getPortrait |
Gets the value of the portrait property. (Android, iPhone, iPad only.) |
| removeEventListener |
Removes the specified callback as an event listener for the named event. |
| Name | Type | Summary |
|---|---|---|
| landscape | Boolean |
True if current window is considered landscape by the device, false otherwise (Android, iPhone, iPad only.) read-only |
| orientation | Number |
Orientation of the current window. Value will be one of the following - |
| portrait | Boolean |
True if current window is considered portrait by the device, false otherwise (Android, iPhone, iPad only.) read-only |
| Name | Summary |
|---|---|
| orientationchange |
fired when the device orientation changes |
| shake |
fired when the device is shaken |