| Platform | Since |
|---|---|
| Android | 0.1 |
| iPhone | 0.1 |
| iPad | 0.1 |
| Mobile Web | 1.8 |
The top level App module. The App module is mainly used for accessing information about the application at runtime.
The App module exposes a number of properties set in the tiapp.xml file.
Three of these properties, the application name, ID, and URL, must be specified when the
application is created.
While most values may be changed by editing the tiapp.xml file after creating the project,
the GUID is automatically generated and should not be changed.
| Name | Summary |
|---|---|
| addEventListener |
Adds the specified callback as an event listener for the named event. |
| fireEvent |
Fires a synthesized event to any registered listeners. |
| getAnalytics |
Gets the value of the analytics property. |
| getArguments |
Returns the arguments passed to the application on startup. (iPhone, iPad only.) |
| getCopyright |
Gets the value of the copyright property. |
| getDeployType |
Gets the value of the deployType property. |
| getDescription |
Gets the value of the description property. |
| getGuid |
Gets the value of the guid property. |
| getId |
Gets the value of the id property. |
| getIdleTimerDisabled |
Gets the value of the idleTimerDisabled property. (iPhone, iPad only.) |
| getName |
Gets the value of the name property. |
| getProximityDetection |
Gets the value of the proximityDetection property. (iPhone, iPad only.) |
| getProximityState |
Gets the value of the proximityState property. (iPhone only.) |
| getPublisher |
Gets the value of the publisher property. |
| getSessionId |
Gets the value of the sessionId property. |
| getUrl |
Gets the value of the url property. |
| getVersion |
Gets the value of the version property. |
| removeEventListener |
Removes the specified callback as an event listener for the named event. |
| setIdleTimerDisabled |
Sets the value of the idleTimerDisabled property. (iPhone, iPad only.) |
| setProximityDetection |
Sets the value of the proximityDetection property. (iPhone, iPad only.) |
| Name | Type | Summary |
|---|---|---|
| analytics | Boolean |
Whether or not Analytics are enabled, from |
| copyright | String |
Application copyright statement, from |
| deployType | String |
Application build type indicating how it was packaged; either |
| description | String |
Application description, from |
| guid | String |
Application globally-unique ID, from |
| id | String |
Application ID, from |
| idleTimerDisabled | Boolean |
Determines whether the screen is locked when the device is idle. (iPhone, iPad only.) |
| name | String |
Application name, from |
| proximityDetection | Boolean |
Determines whether proximity detection is enabled. (iPhone, iPad only.) |
| proximityState | Boolean |
Indicates the state of the device's proximity sensor, according to the
|
| publisher | String |
Application publisher, from |
| sessionId | String |
Unique session identifier for the current continuous run of the application. read-only |
| url | String |
Application URL, from |
| version | String |
Application version, from |
| Name | Summary |
|---|---|
| pause |
Fired when the application transitions to the background. (iPhone, iPad only.) |
| proximity |
Fired when the proximity sensor changes state. (iPhone only.) |
| resume |
Fired when the application transitions to the foreground of a multitasked system. (iPhone, iPad only.) |
| resumed |
Fired when the application has returned to the foreground. (iPhone, iPad only.) |