# Titanium.Android.PendingIntent

> The Titanium binding of an Android `PendingIntent`.

- Source: https://titaniumsdk.com/docs/sdk/Titanium.Android.PendingIntent
- Titanium SDK version: 13.4.1
- Kind: proxy
- Platforms: Android
- Since: Titanium SDK 1.5
- Extends: Titanium.Proxy
- Inheritance: Titanium.Proxy

Use the [Titanium.Android.createPendingIntent](https://titaniumsdk.com/docs/sdk/Titanium.Android.md#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 `PendingIntent` that starts an activity, pass in an activity intent, 
    created with [createIntent](https://titaniumsdk.com/docs/sdk/Titanium.Android.md#createIntent). This is equivalent to
    calling the native Android `PendingIntent.getActivity` method. 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 `PendingIntent` that starts a service, pass in a service intent,
    created with [createServiceIntent](https://titaniumsdk.com/docs/sdk/Titanium.Android.md#createServiceIntent). This is 
     equivalent to calling the native Android `PendingIntent.getService` method. 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](https://titaniumsdk.com/docs/sdk/Titanium.Android.Notification.md) object. It does not support all features 
of the native Android `PendingIntent` -- in particular, 
broadcast pending intents are not supported.

See also: 

*   [PendingIntent in the Android API Reference](https://developer.android.com/reference/android/app/PendingIntent.html)

## Properties

### flags

- Type: Number
- Platforms: Android

Flags used for creating the Pending Intent.

Accepts: `Titanium.Android.FLAG_CANCEL_CURRENT`, `Titanium.Android.FLAG_NO_CREATE`, `Titanium.Android.FLAG_ONE_SHOT`, `Titanium.Android.FLAG_UPDATE_CURRENT`

### intent

- Type: Titanium.Android.Intent
- Platforms: Android

The intent data to pass to the [Activity](https://titaniumsdk.com/docs/sdk/Titanium.Android.Activity.md) launched by this `PendingIntent`.

### updateCurrentIntent

- Type: Boolean
- Platforms: Android

If this property is true, flag [Titanium.Android.FLAG_UPDATE_CURRENT](https://titaniumsdk.com/docs/sdk/Titanium.Android.md#FLAG_UPDATE_CURRENT) will be
appended to `flags` automatically. Default value is true.

## Inherited members

7 members are inherited. Each is documented on the type that declares it.

- [Titanium.Proxy](https://titaniumsdk.com/docs/sdk/Titanium.Proxy.md): `addEventListener`, `apiName`, `applyProperties`, `bubbleParent`, `fireEvent`, `lifecycleContainer`, `removeEventListener`

---

- This corpus documents Titanium SDK 13.4.1. Anything here that does not name a version describes 13.4.1.
- Titanium is maintained by TiDev. The Appcelerator toolchain is retired: there is no `appc` CLI, no Appcelerator Studio and no hosted build service. The supported CLI is `titanium` on npm, invoked as `ti`.

