Titanium.Android.PendingIntent
Extends Titanium.Proxy
The Titanium binding of an Android PendingIntent.
Use the Titanium.Android.createPendingIntent method to create a pending intent.
The type of Intent you pass to createPendingIntent determines what kind of
PendingIntent is created. Each type corresponds directly with a get method on
Android's PendingIntent:
-
To create a
PendingIntentthat starts an activity, pass in an activity intent, created with createIntent. This is equivalent to calling the native AndroidPendingIntent.getActivitymethod. See [PendingIntent.getActivity in the Android API Reference](https://developer.android.com/reference/android/app/PendingIntent.html#getActivity(android.content.Context, int, android.content.Intent, int)) -
To create a
PendingIntentthat starts a service, pass in a service intent, created with createServiceIntent. This is equivalent to calling the native AndroidPendingIntent.getServicemethod. See [PendingIntent.getService in the Android API Reference](https://developer.android.com/reference/android/app/PendingIntent.html#getService(android.content.Context, int, android.content.Intent, int)).
The PendingIntent is always associated with the activity that was the current activity
when the intent was created.
Note that this PendingIntent is designed primarily to be used with the
Notification object. It does not support all features
of the native Android PendingIntent -- in particular,
broadcast pending intents are not supported.
See also:
Properties 6
Inherited from Titanium.Proxy
The name of the API that this proxy corresponds to.
Inherited from Titanium.Proxy
Indicates if the proxy will bubble an event to its parent.
Default: true
flags
NumberFlags used for creating the Pending Intent.
The intent data to pass to the Activity launched by this PendingIntent.
Inherited from Titanium.Proxy
The Window or TabGroup whose Activity lifecycle should be triggered on the proxy.
updateCurrentIntent
BooleanIf this property is true, flag Titanium.Android.FLAG_UPDATE_CURRENT will be
appended to flags automatically. Default value is true.
Methods 4
Inherited from Titanium.Proxy
Adds the specified callback as an event listener for the named event.
| Parameters | Type | Description |
|---|---|---|
| name | String | Name of the event. |
| callback | Callback<Titanium.Event> | Callback function to invoke when the event is fired. 4 fields
|
applyProperties
since 3.0.0Inherited from Titanium.Proxy
Applies the properties to the proxy.
| Parameters | Type | Description |
|---|---|---|
| props | Dictionary | A dictionary of properties to apply. |
Inherited from Titanium.Proxy
Fires a synthesized event to any registered listeners.
| Parameters | Type | Description |
|---|---|---|
| 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. |
Inherited from Titanium.Proxy
Removes the specified callback as an event listener for the named event.
| Parameters | Type | Description |
|---|---|---|
| name | String | Name of the event. |
| callback | Callback<Titanium.Event> | Callback function to remove. Must be the same function passed to 4 fields
|