# PendingIntentActivityWrapper

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/service/quicksettings/PendingIntentActivityWrapper.java+class:androidx.core.service.quicksettings.PendingIntentActivityWrapper) Added in [1.12.0](https://developer.android.com/jetpack/androidx/releases/core#1.12.0)

*** ** * ** ***


```
public class PendingIntentActivityWrapper
```

<br />

*** ** * ** ***

A wrapper class for developers to use with `https://developer.android.com/reference/androidx/core/service/quicksettings/TileServiceCompat#startActivityAndCollapse(android.service.quicksettings.TileService,androidx.core.service.quicksettings.PendingIntentActivityWrapper)`.

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/androidx/core/service/quicksettings/PendingIntentActivityWrapper#PendingIntentActivityWrapper(android.content.Context,int,android.content.Intent,int,boolean)( @https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/android/content/Context.html context, int requestCode, @https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/android/content/Intent.html intent, int flags, boolean isMutable )` |
| `https://developer.android.com/reference/androidx/core/service/quicksettings/PendingIntentActivityWrapper#PendingIntentActivityWrapper(android.content.Context,int,android.content.Intent,int,android.os.Bundle,boolean)( @https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/android/content/Context.html context, int requestCode, @https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/android/content/Intent.html intent, int flags, @https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/android/os/Bundle.html options, boolean isMutable )` |

| ### Public methods |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/android/content/Context.html` | `https://developer.android.com/reference/androidx/core/service/quicksettings/PendingIntentActivityWrapper#getContext()()` |
| `int` | `https://developer.android.com/reference/androidx/core/service/quicksettings/PendingIntentActivityWrapper#getFlags()()` |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/android/content/Intent.html` | `https://developer.android.com/reference/androidx/core/service/quicksettings/PendingIntentActivityWrapper#getIntent()()` |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/android/os/Bundle.html` | `https://developer.android.com/reference/androidx/core/service/quicksettings/PendingIntentActivityWrapper#getOptions()()` |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/android/app/PendingIntent.html` | `https://developer.android.com/reference/androidx/core/service/quicksettings/PendingIntentActivityWrapper#getPendingIntent()()` |
| `int` | `https://developer.android.com/reference/androidx/core/service/quicksettings/PendingIntentActivityWrapper#getRequestCode()()` |
| `boolean` | `https://developer.android.com/reference/androidx/core/service/quicksettings/PendingIntentActivityWrapper#isMutable()()` |

## Public constructors

### PendingIntentActivityWrapper

Added in [1.12.0](https://developer.android.com/jetpack/androidx/releases/core#1.12.0)

```
public PendingIntentActivityWrapper(
    @NonNull Context context,
    int requestCode,
    @NonNull Intent intent,
    int flags,
    boolean isMutable
)
```

### PendingIntentActivityWrapper

Added in [1.12.0](https://developer.android.com/jetpack/androidx/releases/core#1.12.0)

```
public PendingIntentActivityWrapper(
    @NonNull Context context,
    int requestCode,
    @NonNull Intent intent,
    int flags,
    @Nullable Bundle options,
    boolean isMutable
)
```

## Public methods

### getContext

Added in [1.12.0](https://developer.android.com/jetpack/androidx/releases/core#1.12.0)

```
public @NonNull Context getContext()
```

### getFlags

Added in [1.12.0](https://developer.android.com/jetpack/androidx/releases/core#1.12.0)

```
public int getFlags()
```

### getIntent

Added in [1.12.0](https://developer.android.com/jetpack/androidx/releases/core#1.12.0)

```
public @NonNull Intent getIntent()
```

### getOptions

Added in [1.12.0](https://developer.android.com/jetpack/androidx/releases/core#1.12.0)

```
public @NonNull Bundle getOptions()
```

### getPendingIntent

Added in [1.12.0](https://developer.android.com/jetpack/androidx/releases/core#1.12.0)

```
public @Nullable PendingIntent getPendingIntent()
```

### getRequestCode

Added in [1.12.0](https://developer.android.com/jetpack/androidx/releases/core#1.12.0)

```
public int getRequestCode()
```

### isMutable

Added in [1.12.0](https://developer.android.com/jetpack/androidx/releases/core#1.12.0)

```
public boolean isMutable()
```