var window = Titanium.UI.currentWindow; window.setHeight(300); // Set the window height to 300 pixels. window.height = 300; // The same.
| API | A module for holding core Titanium functionality. |
| Analytics | The Titanium Analytics module used for recording analytics events. |
| App | A module for holding currently running application specific functionality. |
| Codec | A module for dealing with encoding and decoding. |
| Database | A module for dealing with Database storage. |
| Desktop | A module dealing with Desktop specific functionality. |
| Filesystem | A module for accessing the Filesystem. |
| JSON | A module for serializing and deserializing JSON. |
| Media | A module for dealing with media. |
| Network | A module for network functionality. |
| Notification | A module for displaying desktop notifications. |
| Platform | A module for exposing platform-specific functionality. |
| Process | A module for creating processes. |
| UI | A module for controlling the user interface. |
| UpdateManager | A module for dealing with application and component updates. |
| Worker | A module for creating Worker threads. |
| Blob | An object for holding arrays of bytes. |
| getPlatform | Return the current platform, usually one of 'osx', 'win32', or 'linux'. |
| getVersion | Return the Titanium runtime version. |
| Type | Name | Description |
|---|---|---|
| String | ALL | The ALL event constant. This can be used for listening for all events. |
| String | APP_EXIT | The APP_EXIT event constant, fired during host application exit. |
| String | CLOSE | The CLOSE event constant |
| String | CLOSED | The CLOSED event constant |
| String | CREATE | The CREATE event constant |
| String | EXIT | The EXIT event constant |
| String | FOCUSED | The FOCUSED event constant |
| String | FULLSCREENED | The FULLSCREENED event constant |
| String | HIDDEN | The HIDDEN event constant |
| String | HTTP_ABORT | The HTTP request aborted event constant. |
| String | HTTP_DATA_RECEIVED | The HTTP data received event constant. |
| String | HTTP_DATA_SENT | The HTTP data sent event constant. |
| String | HTTP_DONE | The HTTP request complete event constant. |
| String | HTTP_REDIRECT | The HTTP redirect event constant. |
| String | HTTP_STATE_CHANGED | The HTTP state changed event constant. |
| String | HTTP_TIMEOUT | The HTTP request timeout event constant. |
| String | MAXIMIZED | The MAXIMIZED event constant |
| String | MINIMIZED | The MINIMIZED event constant |
| String | MOVED | The MOVED event constant |
| String | OPEN | The OPEN event constant |
| String | OPENED | The OPENED event constant |
| String | OPEN_REQUEST | The OPEN request event constant. |
| String | PAGE_INITIALIZED | The PAGE_INITIALIZED event constant |
| String | PAGE_LOADED | The PAGE_LOADED event constant |
| String | READ | The READ event constant |
| String | RESIZED | The RESIZED event constant |
| String | SHOWN | The SHOWN event constant |
| String | UNFOCUSED | The UNFOCUSED event constant |
| String | UNFULLSCREENED | The UNFULLSCREENED event constant |