| Platform | Since |
|---|---|
| Android | 0.1 |
| iPhone | 0.1 |
| iPad | 0.1 |
| Mobile Web | 0.1 |
The top level App module. The App module is mainly used for accessing information about the application at runtime.
| Name | Summary |
|---|---|
| addEventListener |
Adds the specified callback as an event listener for the named event. |
| fireEvent |
Fires a synthesized event to any registered listeners. |
| getArguments |
return the arguments passed to the application on startup as a dictionary (iPhone, iPad only.) |
| removeEventListener |
Removes the specified callback as an event listener for the named event. |
| Name | Type | Summary |
|---|---|---|
| copyright | String |
the application's copyright read-only |
| description | String |
the application's description read-only |
| guid | String |
the application's globally unique id (this is system generated and consistent through all versions) read-only |
| id | String |
the application's app id as specified in Titanium Developer or Titanium Studio read-only |
| idleTimerDisabled | Boolean |
property for controlling whether the phone screen will be locked on idle time. Can be set to true to disable the timer (iPhone, iPad only.) |
| name | String |
the application's name read-only |
| proximityDetection | Boolean |
a boolean to indicate whether proximity detection is enabled (iPhone, iPad only.) |
| proximityState | Number |
the state of the device's proximity detector (iPhone, iPad only.) |
| publisher | String |
the application's publisher read-only |
| url | String |
the application url read-only |
| version | String |
the application's version read-only |
| Name | Summary |
|---|---|
| pause |
fired when an iOS application will stop being the focus. (iPhone, iPad only.) |
| proximity |
fired when a proximity state changes (Android, iPhone, iPad only.) |
| resume |
fired when an iOS application will enter the foreground due to iOS 4's multitasking. This does not include pauses due to notifications or calls. See applicationWillEnterForeground for the exact behavior that triggers this event. (iPhone, iPad only.) |
| resumed |
fired when an iOS application will return to being the focus. This does include not only the events that trigger resume, but pauses due to notifications or calls. See applicationDidBecomeActive for the exact behavior that triggers this event. (iPhone, iPad only.) |