# PendingIntentActivityWrapper

# 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)

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/androidx/core/service/quicksettings/PendingIntentActivityWrapper "View this page in Java")

<br />

```
class PendingIntentActivityWrapper
```

<br />

*** ** * ** ***

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

## Summary

|                                                                                                                                                                                                                                                                                                                                                                                                               ### Public constructors                                                                                                                                                                                                                                                                                                                                                                                                               |
|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [PendingIntentActivityWrapper](https://developer.android.com/reference/kotlin/androidx/core/service/quicksettings/PendingIntentActivityWrapper#PendingIntentActivityWrapper(android.content.Context,int,android.content.Intent,int,boolean))`(` ` context: `[Context](https://developer.android.com/reference/android/content/Context.html)`,` ` requestCode: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`,` ` intent: `[Intent](https://developer.android.com/reference/android/content/Intent.html)`,` ` flags: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`,` ` isMutable: `[Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html) `)`                                                                                                            |
| [PendingIntentActivityWrapper](https://developer.android.com/reference/kotlin/androidx/core/service/quicksettings/PendingIntentActivityWrapper#PendingIntentActivityWrapper(android.content.Context,int,android.content.Intent,int,android.os.Bundle,boolean))`(` ` context: `[Context](https://developer.android.com/reference/android/content/Context.html)`,` ` requestCode: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`,` ` intent: `[Intent](https://developer.android.com/reference/android/content/Intent.html)`,` ` flags: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`,` ` options: `[Bundle](https://developer.android.com/reference/android/os/Bundle.html)`?,` ` isMutable: `[Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html) `)` |

|                                    ### Public functions                                    |
|--------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Context](https://developer.android.com/reference/android/content/Context.html)            | [getContext](https://developer.android.com/reference/kotlin/androidx/core/service/quicksettings/PendingIntentActivityWrapper#getContext())`()`             |
| [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)                | [getFlags](https://developer.android.com/reference/kotlin/androidx/core/service/quicksettings/PendingIntentActivityWrapper#getFlags())`()`                 |
| [Intent](https://developer.android.com/reference/android/content/Intent.html)              | [getIntent](https://developer.android.com/reference/kotlin/androidx/core/service/quicksettings/PendingIntentActivityWrapper#getIntent())`()`               |
| [Bundle](https://developer.android.com/reference/android/os/Bundle.html)                   | [getOptions](https://developer.android.com/reference/kotlin/androidx/core/service/quicksettings/PendingIntentActivityWrapper#getOptions())`()`             |
| [PendingIntent](https://developer.android.com/reference/android/app/PendingIntent.html)`?` | [getPendingIntent](https://developer.android.com/reference/kotlin/androidx/core/service/quicksettings/PendingIntentActivityWrapper#getPendingIntent())`()` |
| [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)                | [getRequestCode](https://developer.android.com/reference/kotlin/androidx/core/service/quicksettings/PendingIntentActivityWrapper#getRequestCode())`()`     |
| [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)        | [isMutable](https://developer.android.com/reference/kotlin/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)  

```
PendingIntentActivityWrapper(
    context: Context,
    requestCode: Int,
    intent: Intent,
    flags: Int,
    isMutable: Boolean
)
```  

### PendingIntentActivityWrapper

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

```
PendingIntentActivityWrapper(
    context: Context,
    requestCode: Int,
    intent: Intent,
    flags: Int,
    options: Bundle?,
    isMutable: Boolean
)
```  

## Public functions

### getContext

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

```
fun getContext(): Context
```  

### getFlags

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

```
fun getFlags(): Int
```  

### getIntent

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

```
fun getIntent(): Intent
```  

### getOptions

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

```
fun getOptions(): Bundle
```  

### getPendingIntent

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

```
fun getPendingIntent(): PendingIntent?
```  

### getRequestCode

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

```
fun getRequestCode(): Int
```  

### isMutable

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

```
fun isMutable(): Boolean
```