Titanium

module
0.2.0
This is the top-level Titanium module, containing all Titanium APIs. Titanium API objects generally follow the setProperty()/getProperty() pattern, but you may also use accessors for most operations For example:
var window = Titanium.UI.currentWindow;
    window.setHeight(300); // Set the window height to 300 pixels.
    window.height = 300; // The same.

Submodules

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.

Objects

Blob An object for holding arrays of bytes.

Functions

getPlatform Return the current platform, usually one of 'osx', 'win32', or 'linux'.
getVersion Return the Titanium runtime version.

Properties

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