# PromptVerticalListContentView

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) Added in [1.4.0-beta01](https://developer.android.com/jetpack/androidx/releases/biometric#1.4.0-beta01)

*** ** * ** ***


```
class PromptVerticalListContentView : PromptContentView
```

<br />

*** ** * ** ***

Contains the information of the template of vertical list content view for Biometric Prompt.

Here's how you'd set a `PromptVerticalListContentView` on a Biometric Prompt:

```kotlin
BiometricPrompt.PromptInfo promptInfo = new BiometricPrompt.PromptInfo.Builder()
    .setTitle(...)
    .setSubTitle(...)
    .setContentView(
        new PromptVerticalListContentView.Builder()
            .setDescription("test description")
            .addListItem(new PromptContentItemPlainText("test item 1"))
            .addListItem(new PromptContentItemPlainText("test item 2"))
            .addListItem(new PromptContentItemBulletedText("test item 3"))
            .build()
     )
    .build();
```

## Summary

| ### Nested types |
|---|
| `class https://developer.android.com/reference/kotlin/androidx/biometric/PromptVerticalListContentView.Builder` A builder used to set individual options for the `https://developer.android.com/reference/kotlin/androidx/biometric/PromptVerticalListContentView` class. |

| ### Public functions |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html?` | `https://developer.android.com/reference/kotlin/androidx/biometric/PromptVerticalListContentView#getDescription()()` Gets the description for the content view, as set by `https://developer.android.com/reference/kotlin/androidx/biometric/PromptVerticalListContentView.Builder#setDescription(java.lang.String)`. |
| `(https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-list/index.html)https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/kotlin/androidx/biometric/PromptContentItem!>` | `https://developer.android.com/reference/kotlin/androidx/biometric/PromptVerticalListContentView#getListItems()()` Gets the list of items on the content view, as set by `https://developer.android.com/reference/kotlin/androidx/biometric/PromptVerticalListContentView.Builder#addListItem(androidx.biometric.PromptContentItem)`. |

## Public functions

### getDescription

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

```
fun getDescription(): String?
```

Gets the description for the content view, as set by `https://developer.android.com/reference/kotlin/androidx/biometric/PromptVerticalListContentView.Builder#setDescription(java.lang.String)`.

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html?` | The description for the content view, or null if the content view has no description. |

### getListItems

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

```
fun getListItems(): (Mutable)List<PromptContentItem!>
```

Gets the list of items on the content view, as set by `https://developer.android.com/reference/kotlin/androidx/biometric/PromptVerticalListContentView.Builder#addListItem(androidx.biometric.PromptContentItem)`.

| Returns |
|---|---|
| `(https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-list/index.html)https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/kotlin/androidx/biometric/PromptContentItem!>` | The item list on the content view. |