# IntentSenderRequest.Builder

Artifact: [androidx.activity:activity](https://developer.android.com/jetpack/androidx/releases/activity) [View Source](https://cs.android.com/search?q=file:androidx/activity/result/IntentSenderRequest.kt+class:androidx.activity.result.IntentSenderRequest.Builder) Added in [1.2.0](https://developer.android.com/jetpack/androidx/releases/activity#1.2.0)

*** ** * ** ***


```
class IntentSenderRequest.Builder
```

<br />

*** ** * ** ***

A builder for constructing `https://developer.android.com/reference/kotlin/androidx/activity/result/IntentSenderRequest` instances.

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/kotlin/androidx/activity/result/IntentSenderRequest.Builder#Builder(android.content.IntentSender)(intentSender: https://developer.android.com/reference/android/content/IntentSender.html)` |
| `https://developer.android.com/reference/kotlin/androidx/activity/result/IntentSenderRequest.Builder#Builder(android.app.PendingIntent)(pendingIntent: https://developer.android.com/reference/android/app/PendingIntent.html)` Convenience constructor that takes an `https://developer.android.com/reference/android/app/PendingIntent.html` and uses its `https://developer.android.com/reference/android/content/IntentSender.html`. |

| ### Public functions |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/activity/result/IntentSenderRequest` | `https://developer.android.com/reference/kotlin/androidx/activity/result/IntentSenderRequest.Builder#build()()` Build the IntentSenderRequest specified by this builder. |
| `https://developer.android.com/reference/kotlin/androidx/activity/result/IntentSenderRequest.Builder` | `https://developer.android.com/reference/kotlin/androidx/activity/result/IntentSenderRequest.Builder#setFillInIntent(android.content.Intent)(fillInIntent: https://developer.android.com/reference/android/content/Intent.html?)` Set the intent for the `https://developer.android.com/reference/kotlin/androidx/activity/result/IntentSenderRequest`. |
| `https://developer.android.com/reference/kotlin/androidx/activity/result/IntentSenderRequest.Builder` | `https://developer.android.com/reference/kotlin/androidx/activity/result/IntentSenderRequest.Builder#setFlags(kotlin.Int,kotlin.Int)(values: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, mask: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` Set the flag mask and flag values for the `https://developer.android.com/reference/kotlin/androidx/activity/result/IntentSenderRequest`. |

## Public constructors

### Builder

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

```
Builder(intentSender: IntentSender)
```

### Builder

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

```
Builder(pendingIntent: PendingIntent)
```

Convenience constructor that takes an `https://developer.android.com/reference/android/app/PendingIntent.html` and uses its `https://developer.android.com/reference/android/content/IntentSender.html`.

| Parameters |
|---|---|
| `pendingIntent: https://developer.android.com/reference/android/app/PendingIntent.html` | the pendingIntent containing with the intentSender to go in the IntentSenderRequest. |

## Public functions

### build

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

```
fun build(): IntentSenderRequest
```

Build the IntentSenderRequest specified by this builder.

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/activity/result/IntentSenderRequest` | the newly constructed IntentSenderRequest. |

### setFillInIntent

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

```
fun setFillInIntent(fillInIntent: Intent?): IntentSenderRequest.Builder
```

Set the intent for the `https://developer.android.com/reference/kotlin/androidx/activity/result/IntentSenderRequest`.

| Parameters |
|---|---|
| `fillInIntent: https://developer.android.com/reference/android/content/Intent.html?` | intent to go in the IntentSenderRequest. If non-null, this will be provided as the intent parameter to IntentSender#sendIntent. |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/activity/result/IntentSenderRequest.Builder` | This builder. |

### setFlags

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

```
fun setFlags(values: Int, mask: Int): IntentSenderRequest.Builder
```

Set the flag mask and flag values for the `https://developer.android.com/reference/kotlin/androidx/activity/result/IntentSenderRequest`.

| Parameters |
|---|---|
| `values: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | flagValues to go in the IntentSenderRequest. Desired values for any bits set in flagsMask Value is either `0` or a combination of the following: - `1` - `2` - `4` - `8` - `16` - `32` - `64` - `128` - `2048` - `1073741824` - `536870912` - `268435456` - `134217728` - `67108864` - `33554432` - `16777216` - `8388608` - `4194304` - `2097152` - `1048576` - `524288` - `262144` - `131072` - `65536` - `32768` - `16384` - `8192` - `4096` <br /> |
| `mask: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | mask to go in the IntentSenderRequest. Intent flags in the original IntentSender that you would like to change. |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/activity/result/IntentSenderRequest.Builder` | This builder. |