# AuthenticationAction.Builder

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

*** ** * ** ***


```
public final class AuthenticationAction.Builder
```

<br />

*** ** * ** ***

A builder for `https://developer.android.com/reference/androidx/credentials/provider/AuthenticationAction`

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/androidx/credentials/provider/AuthenticationAction.Builder#Builder(kotlin.CharSequence,android.app.PendingIntent)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/CharSequence.html title, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/app/PendingIntent.html pendingIntent)` |

| ### Public methods |
|---|---|
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/credentials/provider/AuthenticationAction` | `https://developer.android.com/reference/androidx/credentials/provider/AuthenticationAction.Builder#build()()` Builds an instance of `https://developer.android.com/reference/androidx/credentials/provider/AuthenticationAction` |

## Public constructors

### Builder

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

```
public Builder(@NonNull CharSequence title, @NonNull PendingIntent pendingIntent)
```

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/CharSequence.html title` | the title to be displayed with this authentication action entry |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/app/PendingIntent.html pendingIntent` | the `https://developer.android.com/reference/android/app/PendingIntent.html` that will get invoked when the user selects this entry, must be created with a unique request code per entry, with flag `https://developer.android.com/reference/android/app/PendingIntent.html#FLAG_MUTABLE` to allow the Android system to attach the final request, and NOT with flag `https://developer.android.com/reference/android/app/PendingIntent.html#FLAG_ONE_SHOT` as it can be invoked multiple times |

## Public methods

### build

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

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

Builds an instance of `https://developer.android.com/reference/androidx/credentials/provider/AuthenticationAction`