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

*** ** * ** ***


```
public final class IntentSenderRequest.Builder
```

<br />

*** ** * ** ***

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

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/androidx/activity/result/IntentSenderRequest.Builder#Builder(android.content.IntentSender)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/content/IntentSender.html intentSender)` |
| `https://developer.android.com/reference/androidx/activity/result/IntentSenderRequest.Builder#Builder(android.app.PendingIntent)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/app/PendingIntent.html 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`. |

| ### Public methods |
|---|---|
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/activity/result/IntentSenderRequest` | `https://developer.android.com/reference/androidx/activity/result/IntentSenderRequest.Builder#build()()` Build the IntentSenderRequest specified by this builder. |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/activity/result/IntentSenderRequest.Builder` | `https://developer.android.com/reference/androidx/activity/result/IntentSenderRequest.Builder#setFillInIntent(android.content.Intent)(https://developer.android.com/reference/android/content/Intent.html fillInIntent)` Set the intent for the `https://developer.android.com/reference/androidx/activity/result/IntentSenderRequest`. |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/activity/result/IntentSenderRequest.Builder` | `https://developer.android.com/reference/androidx/activity/result/IntentSenderRequest.Builder#setFlags(kotlin.Int,kotlin.Int)(int values, int mask)` Set the flag mask and flag values for the `https://developer.android.com/reference/androidx/activity/result/IntentSenderRequest`. |

## Public constructors

### Builder

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

```
public Builder(@NonNull IntentSender intentSender)
```

### Builder

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

```
public Builder(@NonNull 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 |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/app/PendingIntent.html pendingIntent` | the pendingIntent containing with the intentSender to go in the IntentSenderRequest. |

## Public methods

### build

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

```
public final @NonNull IntentSenderRequest build()
```

Build the IntentSenderRequest specified by this builder.

| Returns |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/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)

```
public final @NonNull IntentSenderRequest.Builder setFillInIntent(Intent fillInIntent)
```

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

| Parameters |
|---|---|
| `https://developer.android.com/reference/android/content/Intent.html fillInIntent` | 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/androidx/annotation/NonNull https://developer.android.com/reference/androidx/activity/result/IntentSenderRequest.Builder` | This builder. |

### setFlags

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

```
public final @NonNull IntentSenderRequest.Builder setFlags(int values, int mask)
```

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

| Parameters |
|---|---|
| `int values` | 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 /> |
| `int mask` | mask to go in the IntentSenderRequest. Intent flags in the original IntentSender that you would like to change. |

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