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

*** ** * ** ***


```
public final class PromptVerticalListContentView implements 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:

```
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 |
|---|
| `public final class https://developer.android.com/reference/androidx/biometric/PromptVerticalListContentView.Builder` A builder used to set individual options for the `https://developer.android.com/reference/androidx/biometric/PromptVerticalListContentView` class. |

| ### Public methods |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/biometric/PromptVerticalListContentView#getDescription()()` Gets the description for the content view, as set by `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/util/List.html<https://developer.android.com/reference/androidx/biometric/PromptContentItem>` | `https://developer.android.com/reference/androidx/biometric/PromptVerticalListContentView#getListItems()()` Gets the list of items on the content view, as set by `https://developer.android.com/reference/androidx/biometric/PromptVerticalListContentView.Builder#addListItem(androidx.biometric.PromptContentItem)`. |

## Public methods

### getDescription

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

```
public @Nullable String getDescription()
```

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

| Returns |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/java/lang/String.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)

```
public @NonNull List<PromptContentItem> getListItems()
```

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

| Returns |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/java/util/List.html<https://developer.android.com/reference/androidx/biometric/PromptContentItem>` | The item list on the content view. |