| Platform | Since |
|---|---|
| Android | 0.8 |
| iPhone | 0.8 |
| iPad | 0.8 |
| Mobile Web | 1.8 |
The Display Caps object returned by the Titanium.Platform.displayCaps property.
On iPhone, the density property will return high for retina devices and medium otherwise, the dpi property will return 160. For iPad, the density property will return medium and the dpi property will return 130. For Android, these values are device specific.
| Name | Summary |
|---|---|
| addEventListener |
Adds the specified callback as an event listener for the named event. |
| fireEvent |
Fires a synthesized event to any registered listeners. |
| getDensity |
Gets the value of the density property. |
| getDpi |
Gets the value of the dpi property. |
| getPlatformHeight |
Gets the value of the platformHeight property. |
| getPlatformWidth |
Gets the value of the platformWidth property. |
| removeEventListener |
Removes the specified callback as an event listener for the named event. |
| setDensity |
Sets the value of the density property. |
| setDpi |
Sets the value of the dpi property. |
| setPlatformHeight |
Sets the value of the platformHeight property. |
| setPlatformWidth |
Sets the value of the platformWidth property. |
| Name | Type | Summary |
|---|---|---|
| density | String |
returns the density property of the display device. |
| dpi | Number |
the DPI of the display device. |
| platformHeight | Number |
the height of the device screen |
| platformWidth | Number |
the width of the device screen |