# PromptVerticalListContentView.Builder

Artifact: [androidx.biometric:biometric](https://developer.android.com/jetpack/androidx/releases/biometric) [View Source](https://cs.android.com/search?q=file:androidx/biometric/PromptVerticalListContentView.java+class:androidx.biometric.PromptVerticalListContentView.Builder) Added in [1.4.0-beta01](https://developer.android.com/jetpack/androidx/releases/biometric#1.4.0-beta01)

*** ** * ** ***


```
public final class PromptVerticalListContentView.Builder
```

<br />

*** ** * ** ***

A builder used to set individual options for the `https://developer.android.com/reference/androidx/biometric/PromptVerticalListContentView` class.

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/androidx/biometric/PromptVerticalListContentView.Builder#Builder()()` |

| ### Public methods |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/biometric/PromptVerticalListContentView.Builder` | `https://developer.android.com/reference/androidx/biometric/PromptVerticalListContentView.Builder#addListItem(androidx.biometric.PromptContentItem)(@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/biometric/PromptContentItem listItem)` Optional: Adds a list item in the current row. |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/biometric/PromptVerticalListContentView.Builder` | `https://developer.android.com/reference/androidx/biometric/PromptVerticalListContentView.Builder#addListItem(androidx.biometric.PromptContentItem,int)(@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/biometric/PromptContentItem listItem, int index)` Optional: Adds a list item in the current row. |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/biometric/PromptVerticalListContentView` | `https://developer.android.com/reference/androidx/biometric/PromptVerticalListContentView.Builder#build()()` Creates a `https://developer.android.com/reference/androidx/biometric/PromptVerticalListContentView`. |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/biometric/PromptVerticalListContentView.Builder` | `https://developer.android.com/reference/androidx/biometric/PromptVerticalListContentView.Builder#setDescription(java.lang.String)(@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/java/lang/String.html description)` Optional: Sets a description that will be shown on the content view. |

## Public constructors

### Builder

Added in 1.4.0-beta01

```
public Builder()
```

## Public methods

### addListItem

Added in [1.4.0-beta01](https://developer.android.com/jetpack/androidx/releases/biometric#1.4.0-beta01)

```
public @NonNull PromptVerticalListContentView.Builder addListItem(@NonNull PromptContentItem listItem)
```

Optional: Adds a list item in the current row.

| Parameters |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/biometric/PromptContentItem listItem` | The list item view to display |

| Returns |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/biometric/PromptVerticalListContentView.Builder` | This builder. |

| Throws |
|---|---|
| `https://developer.android.com/reference/java/lang/IllegalArgumentException.html` | If this list item exceeds certain character limits or the number of list items exceeds certain limit. |

### addListItem

Added in [1.4.0-beta01](https://developer.android.com/jetpack/androidx/releases/biometric#1.4.0-beta01)

```
public @NonNull PromptVerticalListContentView.Builder addListItem(@NonNull PromptContentItem listItem, int index)
```

Optional: Adds a list item in the current row.

| Parameters |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/biometric/PromptContentItem listItem` | The list item view to display |
| `int index` | The position at which to add the item |

| Returns |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/biometric/PromptVerticalListContentView.Builder` | This builder. |

| Throws |
|---|---|
| `https://developer.android.com/reference/java/lang/IllegalArgumentException.html` | If this list item exceeds certain character limits or the number of list items exceeds certain limit. |

### build

Added in [1.4.0-beta01](https://developer.android.com/jetpack/androidx/releases/biometric#1.4.0-beta01)

```
public @NonNull PromptVerticalListContentView build()
```

Creates a `https://developer.android.com/reference/androidx/biometric/PromptVerticalListContentView`.

| Returns |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/biometric/PromptVerticalListContentView` | An instance of `https://developer.android.com/reference/androidx/biometric/PromptVerticalListContentView`. |

### setDescription

Added in [1.4.0-beta01](https://developer.android.com/jetpack/androidx/releases/biometric#1.4.0-beta01)

```
public @NonNull PromptVerticalListContentView.Builder setDescription(@NonNull String description)
```

Optional: Sets a description that will be shown on the content view.

| Parameters |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/java/lang/String.html description` | The description to display. |

| Returns |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/biometric/PromptVerticalListContentView.Builder` | This builder. |

| Throws |
|---|---|
| `https://developer.android.com/reference/java/lang/IllegalArgumentException.html` | If description exceeds certain character limit. |