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

*** ** * ** ***


```
class PromptVerticalListContentView.Builder
```

<br />

*** ** * ** ***

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

## Summary

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

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

## Public constructors

### Builder

Added in 1.4.0-beta01

```
Builder()
```

## Public functions

### addListItem

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

```
fun addListItem(listItem: PromptContentItem): PromptVerticalListContentView.Builder
```

Optional: Adds a list item in the current row.

| Parameters |
|---|---|
| `listItem: https://developer.android.com/reference/kotlin/androidx/biometric/PromptContentItem` | The list item view to display |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/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)

```
fun addListItem(listItem: PromptContentItem, index: Int): PromptVerticalListContentView.Builder
```

Optional: Adds a list item in the current row.

| Parameters |
|---|---|
| `listItem: https://developer.android.com/reference/kotlin/androidx/biometric/PromptContentItem` | The list item view to display |
| `index: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The position at which to add the item |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/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)

```
fun build(): PromptVerticalListContentView
```

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

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/biometric/PromptVerticalListContentView` | An instance of `https://developer.android.com/reference/kotlin/androidx/biometric/PromptVerticalListContentView`. |

### setDescription

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

```
fun setDescription(description: String): PromptVerticalListContentView.Builder
```

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

| Parameters |
|---|---|
| `description: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | The description to display. |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/biometric/PromptVerticalListContentView.Builder` | This builder. |

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