Titanium.Android
> Titanium.Android

The top-level Android module.

The Android module allows the application to manage various Android components.

Action Bar

An action bar is a UI feature that identifies the application and user location, and provides user actions and navigation modes.

The Titanium SDK lets you customize the look of the action bar and add action items. Action items are added using the Titanium.Android.Menu API.

For more information about the action bar, see the Titanium.Android.ActionBar API reference.

Activities

An Android application is made up of one or more activities. Each activity represents a single screen with a user interface.

In Titanium, each Window or TabGroup has its own activity. The application can access the activity of a Window and TabGroup object and monitor its lifecycle events. Titanium also lets you launch new activities by creating intents to launch them. See the "Intents" section below.

For more information about activities, see the Titanium.Android.Activity API reference.

Broadcast Intents and Receivers

Broadcast Intents allow your application to send out a message to any application that sets up a Broadcast Receiver to listen to it. Your application can also register Broadcast Receivers to listen to system events sent by the Android OS, such as low battery warnings or airplane mode changes.

For more information about broadcasts, see the Android Broadcast Intents and Receivers guide and Titanium.Android.BroadcastReceiver API reference.

Intents

Intents are message objects that specify actions to perform that start either activities, broadcasts or services.

For more information about intents, see the Titanium.Android.Intent API reference.

Intent Filters

Intent Filters advertise to the Android OS that your application handles certain actions and data types. For example, when another application wants to share an image or text, your application can define intent filters to let Android know your application can handle those data types.

For more information about intent filters, see the Android Intent Filters guide.

Launch Modes

Defining launch modes using android:launchMode is not supported by Titanium Android. However, singleTask behaviour can be accomplished when using intent filters.

Notifications

Notifications alert the user that something is happening to your application while it is in the background. Notifications appear in the notification drawer until the user clears them and on the lock screen for devices running Android 5.0 or greater. Note that the user can filter or turn notifications on and off from Settings. For more information about notifications, see the Titanium.Android.Notification API reference.

For Android toast notifications (pop-up notifications sent while the application is in the foreground), see Titanium.UI.Notification.

Options Menu

The options menu is a feature of older Android devices (prior to Android 3.0 (API 11)), and has been replaced by the action bar. The options menu is accessed by pressing the Menu and presents a pop-up menu of options the user can execute.

The Titanium.Android.Menu API is used to construct both the options menu and action items for the action bar.

For more information about the options menu, see the Titanium.Android.Menu API reference.

Services

A service is a component started by an application that runs in the background. The service does not have any application UI associated with it, so the user does not directly interact with it, only your application.

The Titanium SDK gives you the ability to write your own Android Services using JavaScript. The service executes your JavaScript code at intervals you specify. Note that the service may stop running if the application is killed.

For more information about services, see the Titanium.Android.Service API reference.

Permissions

Starting from Android 6.0 (API level 23), users need to grant certain permissions to apps while the app is running. You can read it more here.

In Titanium SDK, to support this, we have the method requestPermissions starting from Titanium SDK 5.4.0. This is used to requests any permission you may need. An example of using this is shown below.

var permissions = ['android.permission.CAMERA', 'android.permission.READ_EXTERNAL_STORAGE'];
Ti.Android.requestPermissions(permissions, function(e) {
    if (e.success) {
        Ti.API.info("SUCCESS");
    } else {
        Ti.API.info("ERROR: " + e.error);
    }
});
  • 1.5
Defined By

Properties

Titanium.Android
ACTION_AIRPLANE_MODE_CHANGED : Stringreadonly

User switched airplane mode on or off.

User switched airplane mode on or off.

Pass to the registerBroadcastReceiver method to listen to the system broadcast.

See Intent.ACTION_AIRPLANE_MODE_CHANGED in the Android API Reference.

Titanium.Android
ACTION_ALL_APPS : Stringreadonly

List all applications.

List all applications.

Use with the Titanium.Android.Intent.action property to create an Activity Intent.

See Intent.ACTION_ALL_APPS in the Android API Reference.

Titanium.Android
ACTION_ANSWER : Stringreadonly

Handle an incoming phone call.

Handle an incoming phone call.

Use with the Titanium.Android.Intent.action property to create an Activity Intent.

See Intent.ACTION_ANSWER in the Android API Reference.

Titanium.Android
ACTION_ATTACH_DATA : Stringreadonly

Used to indicate that the data is an attachment.

Used to indicate that the data is an attachment.

Use with the Titanium.Android.Intent.action property to create an Activity Intent.

See Intent.ACTION_ATTACH_DATA in the Android API Reference.

Titanium.Android
ACTION_BATTERY_CHANGED : Stringreadonly

Listen to battery state change status.

Listen to battery state change status.

Pass to the registerBroadcastReceiver method to listen to the system broadcast.

Note that Titanium exposes battery monitoring using the Titanium.Platform API.

See Intent.ACTION_BATTERY_CHANGED in the Android API Reference.

Titanium.Android
ACTION_BATTERY_LOW : Stringreadonly

Indicates low battery condition on the device.

Indicates low battery condition on the device.

Pass to the registerBroadcastReceiver method to listen to the system broadcast.

Note that Titanium exposes battery monitoring using the Titanium.Platform API.

See Intent.ACTION_BATTERY_LOW in the Android API Reference.

Titanium.Android
ACTION_BATTERY_OKAY : Stringreadonly

Inidicates the battery is now okay after being low.

Inidicates the battery is now okay after being low.

Pass to the registerBroadcastReceiver method to listen to the system broadcast.

Note that Titanium exposes battery monitoring using the Titanium.Platform API.

See Intent.ACTION_BATTERY_OKAY in the Android API Reference.

Titanium.Android
ACTION_BOOT_COMPLETED : Stringreadonly

Indicates the system has finished booting.

Indicates the system has finished booting.

Pass to the registerBroadcastReceiver method to listen to the system broadcast.

The application needs to also set the android.permission.RECEIVE_BOOT_COMPLETED permission in the Android manifest section of the tiapp.xml file.

<ti:app>
    <android>
        <manifest>
            <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
        </manifest>
    </android>
</ti:app>

See Intent.ACTION_BOOT_COMPLETED in the Android API Reference.

Titanium.Android
ACTION_BUG_REPORT : Stringreadonly

Show activity for reporting a bug.

Show activity for reporting a bug.

Use with the Titanium.Android.Intent.action property to create an Activity Intent.

See Intent.ACTION_BUG_REPORT in the Android API Reference.

Titanium.Android
ACTION_CALL : Stringreadonly

Perform a call to someone specified by the data property.

Perform a call to someone specified by the data property.

Use with the Titanium.Android.Intent.action property to create an Activity Intent.

See Intent.ACTION_CALL in the Android API Reference.

Titanium.Android
ACTION_CALL_BUTTON : Stringreadonly

User pressed the call button.

User pressed the call button.

Use with the Titanium.Android.Intent.action property to create an Activity Intent.

See Intent.ACTION_CALL_BUTTON in the Android API Reference.

Titanium.Android
ACTION_CAMERA_BUTTON : Stringreadonly

The camera button was pressed.

The camera button was pressed.

Pass to the registerBroadcastReceiver method to listen to the system broadcast.

See Intent.ACTION_CAMERA_BUTTON in the Android API Reference.

Titanium.Android
ACTION_CHOOSER : Stringreadonly

Display an activity chooser.

Display an activity chooser.

Use with the Titanium.Android.Intent.action property to create an Activity Chooser.

You can also create an activity chooser using the createIntentChooser method.

See Intent.ACTION_CHOOSER in the Android API Reference.

Titanium.Android
ACTION_CLOSE_SYSTEM_DIALOGS : Stringreadonly

User dismissed a temporary system dialog, such as the notification drawer or recent-app drawer.

User dismissed a temporary system dialog, such as the notification drawer or recent-app drawer.

Pass to the registerBroadcastReceiver method to listen to the system broadcast.

See Intent.ACTION_CLOSE_SYSTEM_DIALOGS in the Android API Reference.

Titanium.Android
ACTION_CONFIGURATION_CHANGED : Stringreadonly

The device's configuration changed.

The device's configuration changed.

Pass to the registerBroadcastReceiver method to listen to the system broadcast.

See Intent.ACTION_CONFIGURATION_CHANGED in the Android API Reference.

Titanium.Android
ACTION_CREATE_SHORTCUT : Stringreadonly

Create a shortcut.

Create a shortcut.

Use with the Titanium.Android.Intent.action property to create an Activity Intent.

See Intent.ACTION_CREATE_SHORTCUT in the Android API Reference.

Titanium.Android
ACTION_DATE_CHANGED : Stringreadonly

Date changed.

Date changed.

Pass to the registerBroadcastReceiver method to listen to the system broadcast.

See Intent.ACTION_DATE_CHANGED in the Android API Reference.

Titanium.Android
ACTION_DEFAULT : Stringreadonly

Default action, which is Titanium.Android.ACTION_VIEW

Default action, which is Titanium.Android.ACTION_VIEW

Use with the Titanium.Android.Intent.action property to create an Activity Intent.

See Intent.ACTION_DEFAULT in the Android API Reference.

Titanium.Android
ACTION_DELETE : Stringreadonly

Delete the data specified by the Intent's data property.

Delete the data specified by the Intent's data property.

Use with the Titanium.Android.Intent.action property to create an Activity Intent.

See Intent.ACTION_DELETE in the Android API Reference.

Titanium.Android
ACTION_DEVICE_STORAGE_LOW : Stringreadonly

Indicates a low memory condition on the device.

Indicates a low memory condition on the device.

Pass to the registerBroadcastReceiver method to listen to the system broadcast.

See Intent.ACTION_DEVICE_STORAGE_LOW in the Android API Reference.

Titanium.Android
ACTION_DIAL : Stringreadonly

Dial a number specified by the Intent's data property.

Dial a number specified by the Intent's data property.

Use with the Titanium.Android.Intent.action property to create an Activity Intent.

See Intent.ACTION_DIAL in the Android API Reference.

Titanium.Android
ACTION_EDIT : Stringreadonly

Provide editable access to the data specified by the Intent's data property.

Provide editable access to the data specified by the Intent's data property.

Use with the Titanium.Android.Intent.action property to create an Activity Intent.

See Intent.ACTION_EDIT in the Android API Reference.

Titanium.Android
ACTION_GET_CONTENT : Stringreadonly

Allow the user to select a particular kind of data specified by the Intent's type property.

Allow the user to select a particular kind of data specified by the Intent's type property.

Use with the Titanium.Android.Intent.action property to create an Activity Intent.

See Intent.ACTION_GET_CONTENT in the Android API Reference.

Titanium.Android
ACTION_GTALK_SERVICE_CONNECTED : Stringreadonly

GTalk connection has been established.

GTalk connection has been established.

Pass to the registerBroadcastReceiver method to listen to the system broadcast.

See Intent.ACTION_GTALK_SERVICE_CONNECTED in the Android API Reference.

Titanium.Android
ACTION_GTALK_SERVICE_DISCONNECTED : Stringreadonly

GTalk connections has been disconnected.

GTalk connections has been disconnected.

Pass to the registerBroadcastReceiver method to listen to the system broadcast.

See Intent.ACTION_GTALK_SERVICE_DISCONNECTED in the Android API Reference.

Titanium.Android
ACTION_HEADSET_PLUG : Stringreadonly

A wired headset has been plugged in or unplugged.

A wired headset has been plugged in or unplugged.

Pass to the registerBroadcastReceiver method to listen to the system broadcast.

See Intent.ACTION_HEADSET_PLUG in the Android API Reference.

Titanium.Android
ACTION_INPUT_METHOD_CHANGED : Stringreadonly

An input method has been changed.

An input method has been changed.

Pass to the registerBroadcastReceiver method to listen to the system broadcast.

See Intent.ACTION_INPUT_METHOD_CHANGED in the Android API Reference.

Titanium.Android
ACTION_INSERT : Stringreadonly

Insert an empty item into the given container.

Insert an empty item into the given container.

Use with the Titanium.Android.Intent.action property to create an Activity Intent.

See Intent.ACTION_INSERT in the Android API Reference.

Titanium.Android
ACTION_INSERT_OR_EDIT : Stringreadonly

Pick an existing item or insert an empty item, then edit it.

Pick an existing item or insert an empty item, then edit it.

Use with the Titanium.Android.Intent.action property to create an Activity Intent.

See Intent.ACTION_INSERT_OR_EDIT in the Android API Reference.

Titanium.Android
ACTION_MAIN : Stringreadonly

Start as the main entry point.

Start as the main entry point.

Use with the Titanium.Android.Intent.action property to create an Activity Intent.

See Intent.ACTION_MAIN in the Android API Reference.

Titanium.Android
ACTION_MANAGE_PACKAGE_STORAGE : Stringreadonly

Indicates low memory condition notification acknowledged by user and package management should be started.

Indicates low memory condition notification acknowledged by user and package management should be started.

Pass to the registerBroadcastReceiver method to listen to the system broadcast.

See Intent.ACTION_MANAGE_PACKAGE_STORAGE in the Android API Reference.

Titanium.Android
ACTION_MEDIA_BAD_REMOVAL : Stringreadonly

External media was removed from SD card slot, but mount point was not unmounted.

External media was removed from SD card slot, but mount point was not unmounted.

Pass to the registerBroadcastReceiver method to listen to the system broadcast.

See Intent.ACTION_MEDIA_BAD_REMOVAL in the Android API Reference.

Titanium.Android
ACTION_MEDIA_BUTTON : Stringreadonly

The media button was pressed.

The media button was pressed.

Pass to the registerBroadcastReceiver method to listen to the system broadcast.

See Intent.ACTION_MEDIA_BUTTON in the Android API Reference.

Titanium.Android
ACTION_MEDIA_CHECKING : Stringreadonly

External media is present and being disk-checked

External media is present and being disk-checked

Pass to the registerBroadcastReceiver method to listen to the system broadcast.

Applications should close all files they have open within the mount point when they receive this intent.

See Intent.ACTION_MEDIA_CHECKING in the Android API Reference.

Titanium.Android
ACTION_MEDIA_EJECT : Stringreadonly

User has expressed the desire to remove the external storage media.

User has expressed the desire to remove the external storage media.

Pass to the registerBroadcastReceiver method to listen to the system broadcast.

See Intent.ACTION_MEDIA_EJECT in the Android API Reference.

Titanium.Android
ACTION_MEDIA_MOUNTED : Stringreadonly

External media is present and mounted at its mount point.

External media is present and mounted at its mount point.

Pass to the registerBroadcastReceiver method to listen to the system broadcast.

See Intent.ACTION_MEDIA_MOUNTED in the Android API Reference.

Titanium.Android
ACTION_MEDIA_NOFS : Stringreadonly

External media is present, but is using an incompatible filesystem or is blank.

External media is present, but is using an incompatible filesystem or is blank.

Pass to the registerBroadcastReceiver method to listen to the system broadcast.

See Intent.ACTION_MEDIA_NOFS in the Android API Reference.

Titanium.Android
ACTION_MEDIA_REMOVED : Stringreadonly

External media has been removed.

External media has been removed.

Pass to the registerBroadcastReceiver method to listen to the system broadcast.

See Intent.ACTION_MEDIA_REMOVED in the Android API Reference.

Titanium.Android
ACTION_MEDIA_SCANNER_FINISHED : Stringreadonly

The media scanner has finished scanning a directory.

The media scanner has finished scanning a directory.

Pass to the registerBroadcastReceiver method to listen to the system broadcast.

See Intent.ACTION_MEDIA_SCANNER_FINISHED in the Android API Reference.

Titanium.Android
ACTION_MEDIA_SCANNER_SCAN_FILE : Stringreadonly

Request the media scanner to scan a file and add it to the media database.

Request the media scanner to scan a file and add it to the media database.

Pass to the registerBroadcastReceiver method to listen to the system broadcast.

See Intent.ACTION_MEDIA_SCANNER_SCAN_FILE in the Android API Reference.

Titanium.Android
ACTION_MEDIA_SCANNER_STARTED : Stringreadonly

The media scanner has started scanning a directory.

The media scanner has started scanning a directory.

Pass to the registerBroadcastReceiver method to listen to the system broadcast.

See Intent.ACTION_MEDIA_SCANNER_STARTED in the Android API Reference.

Titanium.Android
ACTION_MEDIA_SHARED : Stringreadonly

External media is unmounted because it is being shared via USB mass storage.

External media is unmounted because it is being shared via USB mass storage.

Pass to the registerBroadcastReceiver method to listen to the system broadcast.

See Intent.ACTION_MEDIA_SHARED in the Android API Reference.

Titanium.Android
ACTION_MEDIA_UNMOUNTABLE : Stringreadonly

Corresponds to the Android Intent.ACTION_MEDIA_UNMOUNTABLE constant.

Corresponds to the Android Intent.ACTION_MEDIA_UNMOUNTABLE constant.

Pass to the registerBroadcastReceiver method to listen to the system broadcast.

See Intent.ACTION_MEDIA_UNMOUNTABLE in the Android API Reference.

Titanium.Android
ACTION_MEDIA_UNMOUNTED : Stringreadonly

External media is present, but not mounted at its mount point.

External media is present, but not mounted at its mount point.

Pass to the registerBroadcastReceiver method to listen to the system broadcast.

See Intent.ACTION_MEDIA_UNMOUNTED in the Android API Reference.

Titanium.Android
ACTION_NEW_OUTGOING_CALL : Stringreadonly

An outgoing call is about to be placed.

An outgoing call is about to be placed.

Pass to the registerBroadcastReceiver method to listen to the system broadcast.

The application needs to also set the android.permission.NEW_OUTGOING_CALL permission in the Android manifest section of the tiapp.xml file.

<ti:app>
    <android>
        <manifest>
            <uses-permission android:name="android.permission.NEW_OUTGOING_CALL" />
        </manifest>
    </android>
</ti:app>

See Intent.ACTION_NEW_OUTGOING_CALL in the Android API Reference.

Titanium.Android
ACTION_PACKAGE_ADDED : Stringreadonly

A new application package has been installed on the device.

A new application package has been installed on the device.

Pass to the registerBroadcastReceiver method to listen to the system broadcast.

See Intent.ACTION_PACKAGE_ADDED in the Android API Reference.

Titanium.Android
ACTION_PACKAGE_CHANGED : Stringreadonly

An existing application package has been changed.

An existing application package has been changed.

Pass to the registerBroadcastReceiver method to listen to the system broadcast.

See Intent.ACTION_PACKAGE_CHANGED in the Android API Reference.

Titanium.Android
ACTION_PACKAGE_DATA_CLEARED : Stringreadonly

The user has cleared the data of a package.

The user has cleared the data of a package.

Pass to the registerBroadcastReceiver method to listen to the system broadcast.

See Intent.ACTION_PACKAGE_DATA_CLEARED in the Android API Reference.

Titanium.Android
: Stringreadonly
Trigger the download and eventual installation of a package. ...

Trigger the download and eventual installation of a package.

Requires: Android 4.0 and earlier

Note: this constant has never been used by Android.

Pass to the registerBroadcastReceiver method to listen to the system broadcast.

See Intent.ACTION_PACKAGE_INSTALL in the Android API Reference.

Titanium.Android
ACTION_PACKAGE_REMOVED : Stringreadonly

An existing application package has been removed from the device.

An existing application package has been removed from the device.

Pass to the registerBroadcastReceiver method to listen to the system broadcast.

See Intent.ACTION_PACKAGE_REMOVED in the Android API Reference.

Titanium.Android
ACTION_PACKAGE_REPLACED : Stringreadonly

A new version of an application package has been installed, replacing an existing version that was previously installed.

A new version of an application package has been installed, replacing an existing version that was previously installed.

Pass to the registerBroadcastReceiver method to listen to the system broadcast.

See Intent.ACTION_PACKAGE_REPLACED in the Android API Reference.

Titanium.Android
ACTION_PACKAGE_RESTARTED : Stringreadonly

The user has restarted a package, and all of its processes have been killed.

The user has restarted a package, and all of its processes have been killed.

Pass to the registerBroadcastReceiver method to listen to the system broadcast.

See Intent.ACTION_PACKAGE_RESTARTED in the Android API Reference.

Titanium.Android
ACTION_PICK : Stringreadonly

Pick an item from the directory indicated by the Intent's data property.

Pick an item from the directory indicated by the Intent's data property.

Use with the Titanium.Android.Intent.action property to create an Activity Intent.

See Intent.ACTION_PICK in the Android API Reference.

Titanium.Android
ACTION_PICK_ACTIVITY : Stringreadonly

Pick an activity given an intent.

Pick an activity given an intent.

Use with the Titanium.Android.Intent.action property to create an Activity Intent.

Add the activity intent using the intent's putExtra() method. Pass the method Titanium.Android.EXTRA_INTENT as the name parameter and the activity intent as the data parameter.

See Intent.ACTION_PICK_ACTIVITY in the Android API Reference.

Titanium.Android
ACTION_POWER_CONNECTED : Stringreadonly

External power has been connected to the device.

External power has been connected to the device.

Pass to the registerBroadcastReceiver method to listen to the system broadcast.

See Intent.ACTION_POWER_CONNECTED in the Android API Reference.

Titanium.Android
ACTION_POWER_DISCONNECTED : Stringreadonly

External power has been disconnected from the device.

External power has been disconnected from the device.

Pass to the registerBroadcastReceiver method to listen to the system broadcast.

See Intent.ACTION_POWER_DISCONNECTED in the Android API Reference.

Titanium.Android
ACTION_POWER_USAGE_SUMMARY : Stringreadonly

Show power usage information to the user.

Show power usage information to the user.

Use with the Titanium.Android.Intent.action property to create an Activity Intent.

See Intent.ACTION_POWER_USAGE_SUMMARY in the Android API Reference.

Titanium.Android
ACTION_PROVIDER_CHANGED : Stringreadonly

Content provider published new events or items.

Content provider published new events or items.

Pass to the registerBroadcastReceiver method to listen to the system broadcast.

See Intent.ACTION_PROVIDER_CHANGED in the Android API Reference.

Titanium.Android
ACTION_REBOOT : Stringreadonly

Device rebooted.

Device rebooted.

Only used by the system.

See Intent.ACTION_REBOOT in the Android API Reference.

Titanium.Android
ACTION_RUN : Stringreadonly

Run the data.

Run the data.

Use with the Titanium.Android.Intent.action property to create an Activity Intent.

See Intent.ACTION_RUN in the Android API Reference.

Titanium.Android
ACTION_SCREEN_OFF : Stringreadonly

Sent when the device goes to sleep and becomes non-interactive.

Sent when the device goes to sleep and becomes non-interactive.

Pass to the registerBroadcastReceiver method to listen to the system broadcast.

See Intent.ACTION_SCREEN_OFF in the Android API Reference.

Titanium.Android
ACTION_SCREEN_ON : Stringreadonly

Sent when the device wakes up and becomes interactive.

Sent when the device wakes up and becomes interactive.

Pass to the registerBroadcastReceiver method to listen to the system broadcast.

See Intent.ACTION_SCREEN_ON in the Android API Reference.

Titanium.Android
ACTION_SEARCH_LONG_PRESS : Stringreadonly

Start action associated with long pressing on the search key.

Start action associated with long pressing on the search key.

Use with the Titanium.Android.Intent.action property to create an Activity Intent.

See Intent.ACTION_SEARCH_LONG_PRESS in the Android API Reference.

Titanium.Android
ACTION_SEND : Stringreadonly

Deliver data to another activity.

Deliver data to another activity.

Use with the Titanium.Android.Intent.action property to create an Activity Intent.

See Intent.ACTION_SEND in the Android API Reference.

Titanium.Android
ACTION_SENDTO : Stringreadonly

Deliver data to the recipient specified by the Intent's data property.

Deliver data to the recipient specified by the Intent's data property.

Use with the Titanium.Android.Intent.action property to create an Activity Intent.

See Intent.ACTION_SENDTO in the Android API Reference.

Titanium.Android
ACTION_SEND_MULTIPLE : Stringreadonly

Deliver multiple data to another activity.

Deliver multiple data to another activity.

Use with the Titanium.Android.Intent.action property to create an Activity Intent.

See Intent.ACTION_SEND_MULTIPLE in the Android API Reference.

Titanium.Android
ACTION_SET_WALLPAPER : Stringreadonly

Show settings for choosing the system wallpaper.

Show settings for choosing the system wallpaper.

Use with the Titanium.Android.Intent.action property to create an Activity Intent.

See Intent.ACTION_SET_WALLPAPER in the Android API Reference.

Titanium.Android
ACTION_SHUTDOWN : Stringreadonly

Device is shutting down.

Device is shutting down.

Pass to the registerBroadcastReceiver method to listen to the system broadcast.

See Intent.ACTION_SHUTDOWN in the Android API Reference.

Titanium.Android
ACTION_SYNC : Stringreadonly

Perform data synchronization.

Perform data synchronization.

Use with the Titanium.Android.Intent.action property to create an Activity Intent.

See Intent.ACTION_SYNC in the Android API Reference.

Titanium.Android
ACTION_SYSTEM_TUTORIAL : Stringreadonly

Start the platform-defined tutorial.

Start the platform-defined tutorial.

Use with the Titanium.Android.Intent.action property to create an Activity Intent.

See Intent.ACTION_SYSTEM_TUTORIAL in the Android API Reference.

Titanium.Android
ACTION_TIME_CHANGED : Stringreadonly

The time was set.

The time was set.

Pass to the registerBroadcastReceiver method to listen to the system broadcast.

See Intent.ACTION_TIME_CHANGED in the Android API Reference.

Titanium.Android
: Stringreadonly
The current time changed. ...

The current time changed. Sent every minute.

Pass to the registerBroadcastReceiver method to listen to the system broadcast.

See Intent.ACTION_TIME_TICK in the Android API Reference.

Titanium.Android
ACTION_UID_REMOVED : Stringreadonly

A user ID was removed from the system.

A user ID was removed from the system.

Pass to the registerBroadcastReceiver method to listen to the system broadcast.

See Intent.ACTION_UID_REMOVED in the Android API Reference.

Titanium.Android
: Stringreadonly
The device has entered USB Mass Storage mode. ...

The device has entered USB Mass Storage mode.

Requires: Android 4.0 and earlier

Pass to the registerBroadcastReceiver method to listen to the system broadcast.

See Intent.ACTION_UMS_CONNECTED in the Android API Reference.

Titanium.Android
: Stringreadonly
The device has exited USB Mass Storage mode. ...

The device has exited USB Mass Storage mode.

Requires: Android 4.0 and earlier

Pass to the registerBroadcastReceiver method to listen to the system broadcast.

See Intent.ACTION_UMS_DISCONNECTED in the Android API Reference.

Titanium.Android
ACTION_USER_PRESENT : Stringreadonly

Sent when the user is present after device wakes up.

Sent when the user is present after device wakes up.

Pass to the registerBroadcastReceiver method to listen to the system broadcast.

See Intent.ACTION_USER_PRESENT in the Android API Reference.

Titanium.Android
ACTION_VIEW : Stringreadonly

Display data to the user.

Display data to the user.

Use with the Titanium.Android.Intent.action property to create an Activity Intent.

See Intent.ACTION_VIEW in the Android API Reference.

Titanium.Android
ACTION_VOICE_COMMAND : Stringreadonly

Start voice command.

Start voice command.

Use with the Titanium.Android.Intent.action property to create an Activity Intent.

See Intent.ACTION_VOICE_COMMAND in the Android API Reference.

Titanium.Android
: Stringreadonly
The current system wallpaper has changed. ...

The current system wallpaper has changed.

Requires: Android 4.1 and earlier

Pass to the registerBroadcastReceiver method to listen to the system broadcast.

See Intent.ACTION_WALLPAPER_CHANGED in the Android API Reference.

Titanium.Android
: Stringreadonly
Notification category indicating an alarm or timer. ...

Notification category indicating an alarm or timer.

Requires: Android 5.0 and later

Use with the Titanium.Android.Notification.category property.

See Notification.CATEGORY_ALARM in the Android API Reference.

  • 3.6.0
Titanium.Android
CATEGORY_ALTERNATIVE : Stringreadonly

Set if the activity should be considered as an alternative action to the data the user is currently viewing.

Set if the activity should be considered as an alternative action to the data the user is currently viewing.

Pass to the Intent's addCategory() method to set a category.

See Intent.CATEGORY_ALTERNATIVE in the Android API Reference.

Titanium.Android
CATEGORY_BROWSABLE : Stringreadonly

Activity can browse the Internet.

Activity can browse the Internet.

Pass to the Intent's addCategory() method to set a category.

The Titanium.Android.ACTION_MAIN constant must also be set in the intent's action property.

See Intent.CATEGORY_BROWSABLE in the Android API Reference.

Titanium.Android
: Stringreadonly
Notification category indicating an incoming call (voice or video) or similar synchronous communication request. ...

Notification category indicating an incoming call (voice or video) or similar synchronous communication request.

Requires: Android 5.0 and later

Use with the Titanium.Android.Notification.category property.

See Notification.CATEGORY_CALL in the Android API Reference.

  • 3.6.0
Titanium.Android
CATEGORY_DEFAULT : Stringreadonly

Activity should be used as the default action to perform on a piece of data.

Activity should be used as the default action to perform on a piece of data.

Pass to the Intent's addCategory() method to set a category.

See Intent.CATEGORY_DEFAULT in the Android API Reference.

Titanium.Android
CATEGORY_DEVELOPMENT_PREFERENCE : Stringreadonly

Activity is in the development preference panel.

Activity is in the development preference panel.

Pass to the Intent's addCategory() method to set a category.

See Intent.CATEGORY_DEVELOPMENT_PREFERENCE in the Android API Reference.

Titanium.Android
: Stringreadonly
Notification category indicating an asynchronous bulk message (email). ...

Notification category indicating an asynchronous bulk message (email).

Requires: Android 5.0 and later

Use with the Titanium.Android.Notification.category property.

See Notification.CATEGORY_EMAIL in the Android API Reference.

  • 3.6.0
Titanium.Android
CATEGORY_EMBED : Stringreadonly

Activity can run inside a parent activity.

Activity can run inside a parent activity.

See Intent.CATEGORY_EMBED in the Android API Reference.

Titanium.Android
: Stringreadonly
Notification category indicating an error in background operation or authentication status. ...

Notification category indicating an error in background operation or authentication status.

Requires: Android 5.0 and later

Use with the Titanium.Android.Notification.category property.

See Notification.CATEGORY_ERROR in the Android API Reference.

  • 3.6.0
Titanium.Android
: Stringreadonly
Notification category indicating a calendar event. ...

Notification category indicating a calendar event.

Requires: Android 5.0 and later

Use with the Titanium.Android.Notification.category property.

See Notification.CATEGORY_EVENT in the Android API Reference.

  • 3.6.0
Titanium.Android
CATEGORY_FRAMEWORK_INSTRUMENTATION_TEST : Stringreadonly

To be used as test code for framework instrumentation tests.

To be used as test code for framework instrumentation tests.

See Intent.CATEGORY_FRAMEWORK_INSTRUMENTATION_TEST in the Android API Reference.

Titanium.Android
CATEGORY_HOME : Stringreadonly

Home activity, the first activity that is displayed when the device boots.

Home activity, the first activity that is displayed when the device boots.

Pass to the Intent's addCategory() method to set a category.

See Intent.CATEGORY_HOME in the Android API Reference.

Titanium.Android
CATEGORY_INFO : Stringreadonly

Provides information about the package it is in.

Provides information about the package it is in.

Pass to the Intent's addCategory() method to set a category.

See Intent.CATEGORY_INFO in the Android API Reference.

Titanium.Android
CATEGORY_LAUNCHER : Stringreadonly

Activity is in the device's launcher.

Activity is in the device's launcher.

Pass to the Intent's addCategory() method to set a category.

See Intent.CATEGORY_LAUNCHER in the Android API Reference.

Titanium.Android
: Stringreadonly
Notification category indicating an incoming direct message (SMS, instant message, etc.). ...

Notification category indicating an incoming direct message (SMS, instant message, etc.).

Requires: Android 5.0 and later

Use with the Titanium.Android.Notification.category property.

See Notification.CATEGORY_MESSAGE in the Android API Reference.

  • 3.6.0
Titanium.Android
CATEGORY_MONKEY : Stringreadonly

This activity may be exercised by the monkey or other automated test tools.

This activity may be exercised by the monkey or other automated test tools.

See Intent.CATEGORY_MONKEY in the Android API Reference.

Titanium.Android
CATEGORY_OPENABLE : Stringreadonly

Activity can open raw file:// or scheme:// URIs.

Activity can open raw file:// or scheme:// URIs.

See Intent.CATEGORY_OPENABLE in the Android API Reference.

Titanium.Android
CATEGORY_PREFERENCE : Stringreadonly

This activity is a preference panel.

This activity is a preference panel.

Pass to the Intent's addCategory() method to set a category.

See Intent.CATEGORY_PREFERENCE in the Android API Reference.

Titanium.Android
: Stringreadonly
Notification category indicating the progress of a long-running background operation. ...

Notification category indicating the progress of a long-running background operation.

Requires: Android 5.0 and later

Use with the Titanium.Android.Notification.category property.

See Notification.CATEGORY_PROGRESS in the Android API Reference.

  • 3.6.0
Titanium.Android
: Stringreadonly
Notification category indicating a promotion or advertisement. ...

Notification category indicating a promotion or advertisement.

Requires: Android 5.0 and later

Use with the Titanium.Android.Notification.category property.

See Notification.CATEGORY_PROMO in the Android API Reference.

  • 3.6.0
Titanium.Android
: Stringreadonly
Notification category indicating a specific, timely recommendation for a single thing. ...

Notification category indicating a specific, timely recommendation for a single thing.

Requires: Android 5.0 and later

Use with the Titanium.Android.Notification.category property.

See Notification.CATEGORY_RECOMMENDATION in the Android API Reference.

  • 3.6.0
Titanium.Android
CATEGORY_SAMPLE_CODE : Stringreadonly

To be used as a sample code example (not part of the normal user experience).

To be used as a sample code example (not part of the normal user experience).

See Intent.CATEGORY_SAMPLE_CODE in the Android API Reference.

Titanium.Android
CATEGORY_SELECTED_ALTERNATIVE : Stringreadonly

Activity should be considered as an alternative selection action to the data the user has currently selected.

Activity should be considered as an alternative selection action to the data the user has currently selected.

Pass to the Intent's addCategory() method to set a category.

See Intent.CATEGORY_SELECTED_ALTERNATIVE in the Android API Reference.

Titanium.Android
: Stringreadonly
Notification category for a running background service. ...

Notification category for a running background service.

Requires: Android 5.0 and later

Use with the Titanium.Android.Notification.category property.

See Notification.CATEGORY_SERVICE in the Android API Reference.

  • 3.6.0
Titanium.Android
: Stringreadonly
Notification category for a social network or sharing update. ...

Notification category for a social network or sharing update.

Requires: Android 5.0 and later

Use with the Titanium.Android.Notification.category property.

See Notification.CATEGORY_SOCIAL in the Android API Reference.

  • 3.6.0
Titanium.Android
: Stringreadonly
Notification category indicating ongoing information about device or contextual status. ...

Notification category indicating ongoing information about device or contextual status.

Requires: Android 5.0 and later

Use with the Titanium.Android.Notification.category property.

See Notification.CATEGORY_STATUS in the Android API Reference.

  • 3.6.0
Titanium.Android
CATEGORY_TAB : Stringreadonly

Activity to be used in a tab activity.

Activity to be used in a tab activity.

Pass to the Intent's addCategory() method to set a category.

See Intent.CATEGORY_TAB in the Android API Reference.

Titanium.Android
CATEGORY_TEST : Stringreadonly

To be used as a test (not part of the normal user experience).

To be used as a test (not part of the normal user experience).

Pass to the Intent's addCategory() method to set a category.

See Intent.CATEGORY_TEST in the Android API Reference.

Titanium.Android
: Stringreadonly
Notification category indicating media transport control for playback. ...

Notification category indicating media transport control for playback.

Requires: Android 5.0 and later

Use with the Titanium.Android.Notification.category property.

See Notification.CATEGORY_TRANSPORT in the Android API Reference.

  • 3.6.0
Titanium.Android
CATEGORY_UNIT_TEST : Stringreadonly

To be used as a unit test (run through the Test Harness).

To be used as a unit test (run through the Test Harness).

See Intent.CATEGORY_UNIT_TEST in the Android API Reference.

Titanium.Android
DEFAULT_ALL : Numberreadonly

Use all default settings for a notification; see Notification.defaults.

Use all default settings for a notification; see Notification.defaults.

See Notification.DEFAULT_ALL in the Android API Reference.

Titanium.Android
DEFAULT_LIGHTS : Numberreadonly

Use the default light settings for a notification; see Notification.defaults.

Use the default light settings for a notification; see Notification.defaults.

See Notification.DEFAULT_LIGHTS in the Android API Reference.

Titanium.Android
DEFAULT_SOUND : Numberreadonly

Use the default sound settings for a notification; see Notification.defaults.

Use the default sound settings for a notification; see Notification.defaults.

See Notification.DEFAULT_SOUND in the Android API Reference.

Titanium.Android
DEFAULT_VIBRATE : Numberreadonly

Use the default vibration settings for a notification; see Notification.defaults.

Use the default vibration settings for a notification; see Notification.defaults.

See Notification.DEFAULT_VIBRATE in the Android API Reference.

Titanium.Android
EXTRA_ALARM_COUNT : Stringreadonly

Integer indicating how many pending alarms are being delivered with the intent.

Integer indicating how many pending alarms are being delivered with the intent.

See Intent.EXTRA_ALARM_COUNT in the Android API Reference.

Titanium.Android
EXTRA_BCC : Stringreadonly

String array containing e-mail addresses for blind carbon copying.

String array containing e-mail addresses for blind carbon copying.

See Intent.EXTRA_BCC in the Android API Reference.

Titanium.Android
EXTRA_CC : Stringreadonly

String array containing e-mail addresses for carbon copying.

String array containing e-mail addresses for carbon copying.

See Intent.EXTRA_CC in the Android API Reference.

Titanium.Android
EXTRA_DATA_REMOVED : Stringreadonly

Boolean indicating full uninstall (true) or partial uninstall (false).

Boolean indicating full uninstall (true) or partial uninstall (false).

Sent with the Titanium.Android.ACTION_PACKAGE_REMOVED broadcast.

See Intent.EXTRA_DATA_REMOVED in the Android API Reference.

Titanium.Android
EXTRA_DONT_KILL_APP : Stringreadonly

Boolean indicating to restart the application or not.

Boolean indicating to restart the application or not.

Sent with the Titanium.Android.ACTION_PACKAGE_REMOVED and Titanium.Android.ACTION_PACKAGE_CHANGED broadcasts.

See Intent.EXTRA_DONT_KILL_APP in the Android API Reference.

Titanium.Android
EXTRA_EMAIL : Stringreadonly

String array containing e-mail addresses.

String array containing e-mail addresses.

See Intent.EXTRA_EMAIL in the Android API Reference.

Titanium.Android
EXTRA_INTENT : Stringreadonly

An Intent describing the choices you would like shown.

An Intent describing the choices you would like shown.

Set if the Intent's action is Titanium.Android.ACTION_PICK_ACTIVITY.

See Intent.EXTRA_INTENT in the Android API Reference.

Titanium.Android
EXTRA_KEY_EVENT : Stringreadonly

A KeyEvent object containing the event that triggered the creation of the Intent it is in.

A KeyEvent object containing the event that triggered the creation of the Intent it is in.

See Intent.EXTRA_KEY_EVENT in the Android API Reference.

Titanium.Android
EXTRA_PHONE_NUMBER : Stringreadonly

String holding the phone number to call or number that was called.

String holding the phone number to call or number that was called.

Sent with the Titanium.Android.ACTION_NEW_OUTGOING_CALL broadcast.

Set if the Intent's action is Titanium.Android.ACTION_CALL.

See Intent.EXTRA_PHONE_NUMBER in the Android API Reference.

Titanium.Android
EXTRA_REPLACING : Stringreadonly

Boolean indicating if the package is being replaced.

Boolean indicating if the package is being replaced.

Sent with the Titanium.Android.ACTION_PACKAGE_REMOVED broadcast.

See Intent.EXTRA_REPLACING in the Android API Reference.

Titanium.Android
EXTRA_SHORTCUT_ICON : Stringreadonly

Bitmap icon.

Titanium.Android
EXTRA_SHORTCUT_ICON_RESOURCE : Stringreadonly

Resource of the shortcut.

Resource of the shortcut.

Return value of an intent with a Titanium.Android.ACTION_CREATE_SHORTCUT action.

See Intent.EXTRA_SHORTCUT_ICON_RESOURCE in the Android API Reference.

Titanium.Android
EXTRA_SHORTCUT_INTENT : Stringreadonly

Intent of a shortcut.

Intent of a shortcut.

Return value of an intent with a Titanium.Android.ACTION_CREATE_SHORTCUT action.

See Intent.EXTRA_SHORTCUT_INTENT in the Android API Reference.

Titanium.Android
EXTRA_SHORTCUT_NAME : Stringreadonly

Name of the shortcut.

Name of the shortcut.

Return value of an intent with a Titanium.Android.ACTION_CREATE_SHORTCUT action.

See Intent.EXTRA_SHORTCUT_NAME in the Android API Reference.

Titanium.Android
EXTRA_STREAM : Stringreadonly

URI containing the stream data.

URI containing the stream data.

Use if the Intent's action is Titanium.Android.ACTION_SEND.

See Intent.EXTRA_STREAM in the Android API Reference.

Titanium.Android
EXTRA_SUBJECT : Stringreadonly

Subject line of a message.

Subject line of a message.

See Intent.EXTRA_SUBJECT in the Android API Reference.

Titanium.Android
EXTRA_TEMPLATE : Stringreadonly

Initial data to place in a newly created record.

Initial data to place in a newly created record.

Use if the Intent's action is Titanium.Android.ACTION_INSERT.

See Intent.EXTRA_TEMPLATE in the Android API Reference.

Titanium.Android
EXTRA_TEXT : Stringreadonly

Corresponds to the Android Intent.EXTRA_TEXT constant.

Corresponds to the Android Intent.EXTRA_TEXT constant.

See Intent.EXTRA_TEXT in the Android API Reference.

Titanium.Android
EXTRA_TITLE : Stringreadonly

Corresponds to the Android Intent.EXTRA_TITLE constant.

Corresponds to the Android Intent.EXTRA_TITLE constant.

Set if the Intent's action is Titanium.Android.ACTION_CHOOSER.

See Intent.EXTRA_TITLE in the Android API Reference.

Titanium.Android
EXTRA_UID : Stringreadonly

UID of the assigned packaged.

Titanium.Android
FILL_IN_ACTION : Numberreadonly
Titanium.Android
FILL_IN_CATEGORIES : Numberreadonly
Titanium.Android
FILL_IN_COMPONENT : Numberreadonly
Titanium.Android
FILL_IN_DATA : Numberreadonly
Titanium.Android
FILL_IN_PACKAGE : Numberreadonly
Titanium.Android
FLAG_ACTIVITY_BROUGHT_TO_FRONT : Numberreadonly

If activity is already running, bring it to the foreground.

If activity is already running, bring it to the foreground.

Set by the system when launching a task.

See Intent.FLAG_ACTIVITY_BROUGHT_TO_FRONT in the Android API Reference.

Titanium.Android
FLAG_ACTIVITY_CLEAR_TOP : Numberreadonly

If the activity is present, removes any activities on top of it to make it the foreground activity.

If the activity is present, removes any activities on top of it to make it the foreground activity.

Bitwise-OR the constant with the Intent's flags property.

See Intent.FLAG_ACTIVITY_CLEAR_TOP in the Android API Reference.

Titanium.Android
: Numberreadonly
Corresponds to the Android Intent.FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET constant. ...

Corresponds to the Android Intent.FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET constant.

Requires: Android 5.0 and earlier

See Intent.FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET in the Android API Reference.

Titanium.Android
FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS : Numberreadonly

Exclude the activity from recently launched activities.

Exclude the activity from recently launched activities.

Bitwise-OR the constant with the Intent's flags property.

See Intent.FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS in the Android API Reference.

Titanium.Android
FLAG_ACTIVITY_FORWARD_RESULT : Numberreadonly

Return result to the original calling activity.

Return result to the original calling activity.

Bitwise-OR the constant with the Intent's flags property.

See Intent.FLAG_ACTIVITY_FORWARD_RESULT in the Android API Reference.

Titanium.Android
FLAG_ACTIVITY_LAUNCHED_FROM_HISTORY : Numberreadonly

Activity was launched from history.

Activity was launched from history.

Set by the system when launching a task.

See Intent.FLAG_ACTIVITY_LAUNCHED_FROM_HISTORY in the Android API Reference.

Titanium.Android
FLAG_ACTIVITY_MULTIPLE_TASK : Numberreadonly

Start the activity as a new task even if it exists.

Start the activity as a new task even if it exists.

Must be used with the Titanium.Android.FLAG_ACTIVITY_NEW_TASK.

Bitwise-OR the constant with the Intent's flags property.

See Intent.FLAG_ACTIVITY_MULTIPLE_TASK in the Android API Reference.

Titanium.Android
FLAG_ACTIVITY_NEW_TASK : Numberreadonly

Activity will be the start of a new task (collection of activities).

Activity will be the start of a new task (collection of activities).

Bitwise-OR the constant with the Intent's flags property.

See Intent.FLAG_ACTIVITY_NEW_TASK in the Android API Reference.

Titanium.Android
FLAG_ACTIVITY_NO_ANIMATION : Numberreadonly

Prevent transition animation.

Prevent transition animation.

Bitwise-OR the constant with the Intent's flags property.

See Intent.FLAG_ACTIVITY_NO_ANIMATION in the Android API Reference.

Titanium.Android
FLAG_ACTIVITY_NO_HISTORY : Numberreadonly

Do not keep the activity in the history stack.

Do not keep the activity in the history stack.

Bitwise-OR the constant with the Intent's flags property.

See Intent.FLAG_ACTIVITY_NO_HISTORY in the Android API Reference.

Titanium.Android
FLAG_ACTIVITY_NO_USER_ACTION : Numberreadonly

Disables the onUserLeaveHint() callback.

Disables the onUserLeaveHint() callback.

Bitwise-OR the constant with the Intent's flags property.

See Intent.FLAG_ACTIVITY_NO_USER_ACTION in the Android API Reference.

Titanium.Android
FLAG_ACTIVITY_PREVIOUS_IS_TOP : Numberreadonly

Corresponds to the Android Intent.FLAG_ACTIVITY_PREVIOUS_IS_TOP constant.

Corresponds to the Android Intent.FLAG_ACTIVITY_PREVIOUS_IS_TOP constant.

Bitwise-OR the constant with the Intent's flags property.

See Intent.FLAG_ACTIVITY_PREVIOUS_IS_TOP in the Android API Reference.

Titanium.Android
FLAG_ACTIVITY_REORDER_TO_FRONT : Numberreadonly

If the activity already exists, place it at the top of the history stack.

If the activity already exists, place it at the top of the history stack.

Bitwise-OR the constant with the Intent's flags property.

See Intent.FLAG_ACTIVITY_REORDER_TO_FRONT in the Android API Reference.

Titanium.Android
FLAG_ACTIVITY_RESET_TASK_IF_NEEDED : Numberreadonly

If the task already exists, resets the task to its initial state.

If the task already exists, resets the task to its initial state.

Bitwise-OR the constant with the Intent's flags property.

See Intent.FLAG_ACTIVITY_RESET_TASK_IF_NEEDED in the Android API Reference.

Titanium.Android
FLAG_ACTIVITY_SINGLE_TOP : Numberreadonly

Do not launch the activity if it is already running.

Do not launch the activity if it is already running.

Bitwise-OR the constant with the Intent's flags property.

See Intent.FLAG_ACTIVITY_SINGLE_TOP in the Android API Reference.

Titanium.Android
FLAG_AUTO_CANCEL : Numberreadonly

Cancel the notification when it is clicked by the user.

Cancel the notification when it is clicked by the user.

Use with Notification.flags.

See also: Notification.FLAG_AUTO_CANCEL in the Android API Reference.

Titanium.Android
FLAG_CANCEL_CURRENT : Numberreadonly

Cancel the current pending intent before creating a new one.

Cancel the current pending intent before creating a new one.

Use with the Titanium.Android.PendingIntent.flags property.

See PendingIntent.FLAG_CANCEL_CURRENT in the Android API Reference.

Titanium.Android
FLAG_DEBUG_LOG_RESOLUTION : Numberreadonly

Enable a log message to print out the resolution of the intent.

Enable a log message to print out the resolution of the intent.

Bitwise-OR the constant with the Intent's flags property.

See Intent.FLAG_DEBUG_LOG_RESOLUTION in the Android API Reference.

Titanium.Android
FLAG_FROM_BACKGROUND : Numberreadonly

Indicates the intent is coming from a background operation.

Indicates the intent is coming from a background operation.

Bitwise-OR the constant with the Intent's flags property.

See Intent.FLAG_FROM_BACKGROUND in the Android API Reference.

Titanium.Android
FLAG_GRANT_READ_URI_PERMISSION : Numberreadonly

Grant read permission on the URI in the Intent's data or clipboard.

Grant read permission on the URI in the Intent's data or clipboard.

Bitwise-OR the constant with the Intent's flags property.

See Intent.FLAG_GRANT_READ_URI_PERMISSION in the Android API Reference.

Titanium.Android
FLAG_GRANT_WRITE_URI_PERMISSION : Numberreadonly

Grants write permission on the URI in the Intent's data or clipboard.

Grants write permission on the URI in the Intent's data or clipboard.

Bitwise-OR the constant with the Intent's flags property.

See Intent.FLAG_GRANT_WRITE_URI_PERMISSION in the Android API Reference.

Titanium.Android
FLAG_INSISTENT : Numberreadonly

Repeat audio until the notification is cancelled or the notification window is opened.

Repeat audio until the notification is cancelled or the notification window is opened.

Use with Notification.flags.

See also: Notification.FLAG_INSISTENT in the Android API Reference.

Titanium.Android
FLAG_NO_CLEAR : Numberreadonly

Do not cancel the notification when the user clicks the Clear All button.

Do not cancel the notification when the user clicks the Clear All button.

Use with Notification.flags.

See also: Notification.FLAG_NO_CLEAR in the Android API Reference.

Titanium.Android
FLAG_NO_CREATE : Numberreadonly

If the current intent does not exist, do not create it.

If the current intent does not exist, do not create it.

Use with the Titanium.Android.PendingIntent.flags property.

See PendingIntent.FLAG_NO_CREATE in the Android API Reference.

Titanium.Android
FLAG_ONE_SHOT : Numberreadonly

The pending intent can only be used once.

The pending intent can only be used once.

Use with the Titanium.Android.PendingIntent.flags property.

See PendingIntent.FLAG_ONE_SHOT in the Android API Reference.

Titanium.Android
FLAG_ONGOING_EVENT : Numberreadonly

Specifies that a notification is in reference to something that is ongoing, like a phone call.

Specifies that a notification is in reference to something that is ongoing, like a phone call.

Use with Notification.flags.

See also: Notification.FLAG_ONGOING_EVENT in the Android API Reference.

Titanium.Android
: Numberreadonly
Play an alert (sound, lights, and/or vibration) once each time the notification is sent, even if it has not been canc...

Play an alert (sound, lights, and/or vibration) once each time the notification is sent, even if it has not been canceled before that.

Use with Notification.flags.

See also: Notification.FLAG_ONLY_ALERT_ONCE in the Android API Reference.

Titanium.Android
FLAG_RECEIVER_REGISTERED_ONLY : Numberreadonly

When sending a broadcast, only registered receivers will be called.

When sending a broadcast, only registered receivers will be called.

Bitwise-OR the constant with the Intent's flags property.

See Intent.FLAG_RECEIVER_REGISTERED_ONLY in the Android API Reference.

Titanium.Android
FLAG_SHOW_LIGHTS : Numberreadonly

Use LED lights to alert the user to the notification.

Use LED lights to alert the user to the notification.

Use with Notification.flags.

See also: Notification.FLAG_SHOW_LIGHTS in the Android API Reference.

Titanium.Android
FLAG_UPDATE_CURRENT : Numberreadonly

If the current pending intent already exists, only update the current intent's extra data.

If the current pending intent already exists, only update the current intent's extra data.

Use with the Titanium.Android.PendingIntent.flags property.

See PendingIntent.FLAG_UPDATE_CURRENT in the Android API Reference.

Titanium.Android
IMPORTANCE_DEFAULT : Numberreadonly

Used with NotificationChannel to specify an importance level.

Used with NotificationChannel to specify an importance level.

  • 7.0.0
Titanium.Android
IMPORTANCE_HIGH : Numberreadonly

Used with NotificationChannel to specify an importance level.

Used with NotificationChannel to specify an importance level.

  • 7.0.0
Titanium.Android
IMPORTANCE_LOW : Numberreadonly

Used with NotificationChannel to specify an importance level.

Used with NotificationChannel to specify an importance level.

  • 7.0.0
Titanium.Android
IMPORTANCE_MAX : Numberreadonly

Used with NotificationChannel to specify an importance level.

Used with NotificationChannel to specify an importance level.

  • 7.0.0
Titanium.Android
IMPORTANCE_MIN : Numberreadonly

Used with NotificationChannel to specify an importance level.

Used with NotificationChannel to specify an importance level.

  • 7.0.0
Titanium.Android
IMPORTANCE_NONE : Numberreadonly

Used with NotificationChannel to specify an importance level.

Used with NotificationChannel to specify an importance level.

  • 7.0.0
Titanium.Android
IMPORTANCE_UNSPECIFIED : Numberreadonly

Used with NotificationChannel to specify an importance level.

Used with NotificationChannel to specify an importance level.

  • 7.0.0
Titanium.Android
NAVIGATION_MODE_STANDARD : Numberreadonly

Standard Action Bar navigation mode

Standard Action Bar navigation mode

Use with the Titanium.Android.ActionBar.navigationMode property. Note: NAVIGATION_MODE_STANDARD has been deprecated in API level 21 and up.

  • 3.2.0
Titanium.Android
NAVIGATION_MODE_TABS : Numberreadonly

Action Bar tab navigation mode

Action Bar tab navigation mode

Use with the Titanium.Android.ActionBar.navigationMode property. Note: NAVIGATION_MODE_TABS has been deprecated in API level 21 and up.

  • 3.2.0
Titanium.Android
: Numberdeprecatedreadonly
Not used. ...

Not used.

deprecated since 2.0.0

Titanium.Android
: Numberdeprecatedreadonly
Not used. ...

Not used.

deprecated since 2.0.0

Titanium.Android
: Numberdeprecatedreadonly
Not used. ...

Not used.

deprecated since 2.0.0

Titanium.Android
: Numberdeprecatedreadonly
Not used. ...

Not used.

deprecated since 2.0.0

Titanium.Android
: Numberreadonly
Default priority if it does no fit into another priority category. ...

Default priority if it does no fit into another priority category.

Requires: Android 4.1 and later

Use with the Titanium.Android.Notification.priority property.

See also: Notification.PRIORITY_DEFAULT in the Android API Reference.

  • 3.6.0
Titanium.Android
: Numberreadonly
Use for high priority notifications like real-time chat messages. ...

Use for high priority notifications like real-time chat messages.

Requires: Android 4.1 and later

Use with the Titanium.Android.Notification.priority property.

See also: Notification.PRIORITY_HIGH in the Android API Reference.

  • 3.6.0
Titanium.Android
: Numberreadonly
Use for low priority notifications like software updates. ...

Use for low priority notifications like software updates.

Requires: Android 4.1 and later

Use with the Titanium.Android.Notification.priority property.

See also: Notification.PRIORITY_LOW in the Android API Reference.

  • 3.6.0
Titanium.Android
: Numberreadonly
Use for urgent or time-critical notifications, for example, turn-by-turn directions or emergency alerts. ...

Use for urgent or time-critical notifications, for example, turn-by-turn directions or emergency alerts.

Requires: Android 4.1 and later

Use with the Titanium.Android.Notification.priority property.

See also: Notification.PRIORITY_MAX in the Android API Reference.

  • 3.6.0
Titanium.Android
: Numberreadonly
Use for expired events. ...

Use for expired events.

Requires: Android 4.1 and later

Use with the Titanium.Android.Notification.priority property.

Note that the user will not be alerted to the notification (sound, vibration, etc.), but the notification will appear in the drawer.

See also: Notification.PRIORITY_MIN in the Android API Reference.

  • 3.6.0
Titanium.Android
R : Titanium.Android.Rreadonly

Accessor for Android system resources.

Accessor for Android system resources.

Titanium.Android
RESULT_CANCELED : Numberreadonly

Used with setResult to specify that an activity was canceled.

Used with setResult to specify that an activity was canceled.

Titanium.Android
RESULT_FIRST_USER : Numberreadonly

Used with setResult to specify a user-defined result.

Used with setResult to specify a user-defined result.

User-defined result constants values start at RESULT_FIRST_USER.

Titanium.Android
RESULT_OK : Numberreadonly

Used with setResult to specify that an activity succeeded.

Used with setResult to specify that an activity succeeded.

Titanium.Android
: Numberreadonly
Use with requestedOrientation to specify the activity should run in the same orientation as the activity behind it in...

Use with requestedOrientation to specify the activity should run in the same orientation as the activity behind it in the activity stack.

Titanium.Android
SCREEN_ORIENTATION_LANDSCAPE : Numberreadonly

Use with requestedOrientation to specify a landscape screen orientation.

Use with requestedOrientation to specify a landscape screen orientation.

Titanium.Android
SCREEN_ORIENTATION_NOSENSOR : Numberreadonly

Use with requestedOrientation to specify that the sensor should be ignored and the display should not rotate.

Use with requestedOrientation to specify that the sensor should be ignored and the display should not rotate.

Titanium.Android
SCREEN_ORIENTATION_PORTRAIT : Numberreadonly

Use with requestedOrientation to specify a portrait screen orientation.

Use with requestedOrientation to specify a portrait screen orientation.

Titanium.Android
SCREEN_ORIENTATION_SENSOR : Numberreadonly

Use with requestedOrientation to specify that orientation should be determined by the orientation sensor.

Use with requestedOrientation to specify that orientation should be determined by the orientation sensor.

Titanium.Android
: Numberreadonly
Use with requestedOrientation to specify that the system should use its default rules for determining the best orient...

Use with requestedOrientation to specify that the system should use its default rules for determining the best orientation.

Titanium.Android
SCREEN_ORIENTATION_USER : Numberreadonly

Use with requestedOrientation to specify that the system should use the user's preferred orientation.

Use with requestedOrientation to specify that the system should use the user's preferred orientation.

Titanium.Android
SHOW_AS_ACTION_ALWAYS : Numberreadonly

Always show this item as an action button in the action bar.

Always show this item as an action button in the action bar.

Use with the MenuItem's Titanium.Android.MenuItem.showAsAction property.

  • 3.0.0
Titanium.Android
SHOW_AS_ACTION_COLLAPSE_ACTION_VIEW : Numberreadonly

The action view can collapse to a normal menu item.

The action view can collapse to a normal menu item.

Use with the MenuItem's Titanium.Android.MenuItem.showAsAction property.

  • 3.0.0
Titanium.Android
SHOW_AS_ACTION_IF_ROOM : Numberreadonly

Show this item as an action button if the system decides there is room for it.

Show this item as an action button if the system decides there is room for it.

Use with the MenuItem's Titanium.Android.MenuItem.showAsAction property.

  • 3.0.0
Titanium.Android
SHOW_AS_ACTION_NEVER : Numberreadonly

Never display this item as an action button in the action bar.

Never display this item as an action button in the action bar.

Use with the MenuItem's Titanium.Android.MenuItem.showAsAction property.

  • 3.0.0
Titanium.Android
SHOW_AS_ACTION_WITH_TEXT : Numberreadonly

When this item is in the action bar, always show it with a text label.

When this item is in the action bar, always show it with a text label.

Use with the MenuItem's Titanium.Android.MenuItem.showAsAction property.

  • 3.0.0
Titanium.Android
: Numberreadonly
A Service start mode indicating that if the host application is stopped by Android, the service should not be restart...

A Service start mode indicating that if the host application is stopped by Android, the service should not be restarted automatically.

Use as a startMode value in the options object passed to createServiceIntent.

Titanium.Android
: Numberreadonly
A Service start mode indicating that if the host application is stopped by Android, the service should be restarted a...

A Service start mode indicating that if the host application is stopped by Android, the service should be restarted automatically and the original Intent re-sent.

Use as a startMode value in the options object passed to createServiceIntent.

Titanium.Android
STREAM_ALARM : Numberreadonly

Use with audioStreamType to request that the alarm stream type for notifications be used.

Use with audioStreamType to request that the alarm stream type for notifications be used.

Titanium.Android
STREAM_DEFAULT : Numberreadonly

Use with audioStreamType to request that the default stream type for notifications be used.

Use with audioStreamType to request that the default stream type for notifications be used.

Titanium.Android
STREAM_MUSIC : Numberreadonly

Use with audioStreamType to request that the music stream type for notifications be used.

Use with audioStreamType to request that the music stream type for notifications be used.

Titanium.Android
STREAM_NOTIFICATION : Numberreadonly

Use with audioStreamType to request that the notification stream type for notifications be used.

Use with audioStreamType to request that the notification stream type for notifications be used.

Titanium.Android
STREAM_RING : Numberreadonly

Use with audioStreamType to request that the ring stream type for notifications be used.

Use with audioStreamType to request that the ring stream type for notifications be used.

Titanium.Android
STREAM_SYSTEM : Numberreadonly

Use with audioStreamType to request that the system stream type for notifications be used.

Use with audioStreamType to request that the system stream type for notifications be used.

Titanium.Android
STREAM_VOICE_CALL : Numberreadonly

Use with audioStreamType to request that the voice call stream type for notifications be used.

Use with audioStreamType to request that the voice call stream type for notifications be used.

Titanium.Android
TILE_STATE_ACTIVE : Numberreadonly

QuickSettings tile is active.

QuickSettings tile is active.

The Tile is in enabled state and the user can interact with it.

  • 7.0.0
Titanium.Android
TILE_STATE_INACTIVE : Numberreadonly

QuickSettings tile is inactive.

QuickSettings tile is inactive.

The Tile is in disabled state, but the user can interact with it.

  • 7.0.0
Titanium.Android
TILE_STATE_UNAVAILABLE : Numberreadonly

QuickSettings tile is unavailble.

QuickSettings tile is unavailble.

For some reason the Tile is not avaialable to the used and will have no click action.

  • 7.0.0
Titanium.Android
URI_INTENT_SCHEME : Numberreadonly

The URI scheme used for intent URIs.

The URI scheme used for intent URIs.

Titanium.Android
: Numberreadonly
Shows basic information about the notification. ...

Shows basic information about the notification.

Requires: Android 5.0 and later

Use with the Titanium.Android.Notification.visibility property.

Only the application name and icon appear in the lock screen with the message: "Contents hidden".

See also: Notification.VISIBILITY_PRIVATE in the Android API Reference.

  • 3.6.0
Titanium.Android
: Numberreadonly
Shows the notification's full content on the lockscreen. ...

Shows the notification's full content on the lockscreen. This is the system default if visibility is left unspecified.

Requires: Android 5.0 and later

Use with the Titanium.Android.Notification.visibility property.

See also: Notification.VISIBILITY_PUBLIC in the Android API Reference.

  • 3.6.0
Titanium.Android
: Numberreadonly
Shows the most minimal information of the notification on the lockscreen. ...

Shows the most minimal information of the notification on the lockscreen.

Requires: Android 5.0 and later

Use with the Titanium.Android.Notification.visibility property.

See also: Notification.VISIBILITY_SECRET in the Android API Reference.

  • 3.6.0
Titanium.Android
WAKE_LOCK_ACQUIRE_CAUSES_WAKEUP : Numberreadonly

Turn the screen on when the wake lock is acquired.

Turn the screen on when the wake lock is acquired.

Use with the Titanium.Android.Notification.wakeLock property.

See also: PowerManager.ACQUIRE_CAUSES_WAKEUP in the Android API Reference.

  • 6.2.0
Titanium.Android
WAKE_LOCK_FULL : Numberreadonly

Ensures that the screen and keyboard backlight are on at full brightness.

Ensures that the screen and keyboard backlight are on at full brightness.

Use with the Titanium.Android.Notification.wakeLock property.

See also: PowerManager.FULL_WAKE_LOCK in the Android API Reference.

  • 6.2.0
Titanium.Android
WAKE_LOCK_ON_AFTER_RELEASE : Numberreadonly

When this wake lock is released, poke the user activity timer so the screen stays on for a little longer.

When this wake lock is released, poke the user activity timer so the screen stays on for a little longer.

Use with the Titanium.Android.Notification.wakeLock property.

See also: PowerManager.ON_AFTER_RELEASE in the Android API Reference.

  • 6.2.0
Titanium.Android
WAKE_LOCK_PARTIAL : Numberreadonly

Ensures that the CPU is running; the screen and keyboard backlight will be allowed to go off.

Ensures that the CPU is running; the screen and keyboard backlight will be allowed to go off.

Use with the Titanium.Android.Notification.wakeLock property.

See also: PowerManager.PARTIAL_WAKE_LOCK in the Android API Reference.

  • 6.2.0
Titanium.Android
WAKE_LOCK_SCREEN_BRIGHT : Numberreadonly

Ensures that the screen is on at full brightness; the keyboard backlight will be allowed to go off.

Ensures that the screen is on at full brightness; the keyboard backlight will be allowed to go off.

Use with the Titanium.Android.Notification.wakeLock property.

See also: PowerManager.SCREEN_BRIGHT_WAKE_LOCK in the Android API Reference.

  • 6.2.0
Titanium.Android
WAKE_LOCK_SCREEN_DIM : Numberreadonly

Ensures that the screen is on (but may be dimmed); the keyboard backlight will be allowed to go off.

Ensures that the screen is on (but may be dimmed); the keyboard backlight will be allowed to go off.

Use with the Titanium.Android.Notification.wakeLock property.

See also: PowerManager.SCREEN_DIM_WAKE_LOCK in the Android API Reference.

  • 6.2.0
apiName : Stringreadonly

The name of the API that this proxy corresponds to.

The name of the API that this proxy corresponds to.

The value of this property is the fully qualified name of the API. For example, Button returns Ti.UI.Button.

  • 3.2.0
  • 3.2.0
  • 3.2.0
Indicates if the proxy will bubble an event to its parent. ...

Indicates if the proxy will bubble an event to its parent.

Some proxies (most commonly views) have a relationship to other proxies, often established by the add() method. For example, for a button added to a window, a click event on the button would bubble up to the window. Other common parents are table sections to their rows, table views to their sections, and scrollable views to their views. Set this property to false to disable the bubbling to the proxy's parent.

Default: true

  • 3.0.0
  • 3.0.0
  • 3.0.0
Titanium.Android
currentActivity : Titanium.Android.Activityreadonly

Activity of the active context.

Activity of the active context.

Titanium.Android
currentService : Titanium.Android.Servicereadonly

Service in the active context.

Service in the active context.

The Window or TabGroup whose Activity lifecycle should be triggered on the proxy.

The Window or TabGroup whose Activity lifecycle should be triggered on the proxy.

If this property is set to a Window or TabGroup, then the corresponding Activity lifecycle event callbacks will also be called on the proxy. Proxies that require the activity lifecycle will need this property set to the appropriate containing Window or TabGroup.

  • 3.6.0
Defined By

Methods

Adds the specified callback as an event listener for the named event. ...

Adds the specified callback as an event listener for the named event.

Parameters

  • name : String

    Name of the event.

  • callback : Callback<Object>

    Callback function to invoke when the event is fired.

Returns

  • void
Applies the properties to the proxy. ...

Applies the properties to the proxy.

Properties are supplied as a dictionary. Each key-value pair in the object is applied to the proxy such that myproxy[key] = value.

  • 3.0.0
  • 3.0.0
  • 3.0.0

Parameters

  • props : Dictionary

    A dictionary of properties to apply.

Returns

  • void
Creates and returns an instance of Titanium.Android.BigPictureStyle. ...

Creates and returns an instance of Titanium.Android.BigPictureStyle.

  • 5.4.0

Parameters

Returns

Titanium.Android
( [parameters] ) : Titanium.Android.BigTextStyle
Creates and returns an instance of Titanium.Android.BigTextStyle. ...

Creates and returns an instance of Titanium.Android.BigTextStyle.

  • 5.4.0

Parameters

Returns

Titanium.Android
( [parameters] ) : Titanium.Android.Intent
Create an Intent to be used in a broadcast. ...

Create an Intent to be used in a broadcast.

  • 3.2.0

Parameters

Returns

Creates and returns an instance of Titanium.Android.BroadcastReceiver. ...

Creates and returns an instance of Titanium.Android.BroadcastReceiver.

  • 3.1.0

Parameters

Returns

Titanium.Android
( [parameters] ) : Titanium.UI.Android.DrawerLayout
Creates a DrawerLayout. ...

Creates a DrawerLayout.

Parameters

Returns

Titanium.Android
( [parameters] ) : Titanium.Android.Intent
Creates and returns an instance of Titanium.Android.Intent. ...

Creates and returns an instance of Titanium.Android.Intent.

Parameters

Returns

Titanium.Android
( intent, title ) : Titanium.Android.Intent
Creates an activity chooser intent, used to allow the user to select a target activity for an intent. ...

Creates an activity chooser intent, used to allow the user to select a target activity for an intent.

Use this method when the user wants to take an action that could use any one of a number of applications. For example, when sending a plain text message, the user may choose to send a text message, send an email, or post to a social network.

You pass in an Intent representing the action being taken, and a title for the chooser.

The method returns another intent, representing the chooser, which can be used to start an activity. See the code example for details on how to display the chooser.

For more information, see the official Android documentation for Intent.ACTION_CHOOSER

Examples

Using a Chooser

The following example uses an activity chooser to send a plain text message.

var intent = Ti.Android.createIntent( {
    action: Ti.Android.ACTION_SEND,
    type: 'text/plain'
});
intent.putExtra(Ti.Android.EXTRA_SUBJECT, "This is the subject.");
intent.putExtra(Ti.Android.EXTRA_TEXT, "This is some text to send.")

var chooser = Ti.Android.createIntentChooser(intent, "Send Message");
var activity = Ti.Android.currentActivity.startActivity(chooser);

Parameters

  • intent : Titanium.Android.Intent

    The intent to display a chooser for.

  • title : String

    Title to display on the chooser.

Returns

Titanium.Android
( [parameters] ) : Titanium.Android.Notification
Creates and returns an instance of Titanium.Android.Notification. ...

Creates and returns an instance of Titanium.Android.Notification.

Parameters

Returns

Creates and returns an instance of Titanium.Android.NotificationChannel. ...

Creates and returns an instance of Titanium.Android.NotificationChannel.

  • 7.0.0

Parameters

Returns

Titanium.Android
( [parameters] ) : Titanium.Android.PendingIntent
Creates a PendingIntent to be used inside a Notification. ...

Creates a PendingIntent to be used inside a Notification.

If FLAG_NO_CREATE is specified and no matching pending intent exists, returns null.

Parameters

Returns

Creates and returns an instance of Titanium.Android.QuickSettingsService. ...

Creates and returns an instance of Titanium.Android.QuickSettingsService.

  • 7.0

Parameters

Returns

Titanium.Android
( [parameters] ) : Titanium.Android.RemoteViews
Creates and returns an instance of Titanium.Android.RemoteViews. ...

Creates and returns an instance of Titanium.Android.RemoteViews.

  • 1.6

Parameters

Returns

Titanium.Android
( intent ) : Titanium.Android.Service
Create a Titanium.Android.Service so you can start/stop it and listen for events from it. ...

Create a Titanium.Android.Service so you can start/stop it and listen for events from it.

Parameters

Returns

Titanium.Android
( options ) : Titanium.Android.Intent
Create an Intent to be used to start a service. ...

Create an Intent to be used to start a service.

Parameters

Returns

Fires a synthesized event to any registered listeners. ...

Fires a synthesized event to any registered listeners.

Parameters

  • name : String

    Name of the event.

  • event : Dictionary

    A dictionary of keys and values to add to the Titanium.Event object sent to the listeners.

Returns

  • void
Gets the value of the apiName property. ...

Gets the value of the apiName property.

  • 3.2.0
  • 3.2.0
  • 3.2.0

Returns

  • String
Gets the value of the bubbleParent property. ...

Gets the value of the bubbleParent property.

  • 3.0.0
  • 3.0.0
  • 3.0.0

Returns

  • Boolean
Gets the value of the lifecycleContainer property. ...

Gets the value of the lifecycleContainer property.

  • 3.6.0

Returns

Titanium.Android
( permission ) : Boolean
Returns true if the app has permission access. ...

Returns true if the app has permission access.

  • 5.4.0

Parameters

  • permission : String/Array<String>

    The permission to check for access. This can be any of the constants listed here with dangerous protection level here. For example, android.permission.WRITE_CONTACTS.

    Since Titanium 6.1.0, the method will also accept Array

Returns

  • Boolean
Titanium.Android
( intent ) : Boolean
Check on state of Service. ...

Check on state of Service.

Parameters

Returns

  • Boolean
Titanium.Android
( broadcastReceiver, actions )
Registers broadcast receiver for the given actions ...

Registers broadcast receiver for the given actions

  • 3.1.0

Parameters

  • broadcastReceiver : Titanium.Android.BroadcastReceiver

    The broadcast receiver to register and handle the broadcast

  • actions : Array<String>

    The actions that the broadcast reciever will handle

Returns

  • void
Removes the specified callback as an event listener for the named event. ...

Removes the specified callback as an event listener for the named event.

Multiple listeners can be registered for the same event, so the callback parameter is used to determine which listener to remove.

When adding a listener, you must save a reference to the callback function in order to remove the listener later:

var listener = function() { Ti.API.info("Event listener called."); }
window.addEventListener('click', listener);

To remove the listener, pass in a reference to the callback function:

window.removeEventListener('click', listener);

Parameters

  • name : String

    Name of the event.

  • callback : Callback<Object>

    Callback function to remove. Must be the same function passed to addEventListener.

Returns

  • void
Titanium.Android
( permissions, [callback] )
Request for permission access. ...

Request for permission access.

  • 5.4.0

Parameters

Returns

  • void
Sets the value of the bubbleParent property. ...

Sets the value of the bubbleParent property.

  • 3.0.0
  • 3.0.0
  • 3.0.0

Parameters

  • bubbleParent : Boolean

    New value for the property.

Returns

  • void
Sets the value of the lifecycleContainer property. ...

Sets the value of the lifecycleContainer property.

  • 3.6.0

Parameters

Returns

  • void
Titanium.Android
( intent )
Starts a simple service. ...

Starts a simple service.

Parameters

Returns

  • void
Titanium.Android
( intent )
Stop a simple service that was started with startService. ...

Stop a simple service that was started with startService.

Parameters

Returns

  • void
Titanium.Android
( broadcastReceiver )
Unregisters a broadcast receiver ...

Unregisters a broadcast receiver

  • 3.1.0

Parameters

Returns

  • void