Stay organized with collections
Save and categorize content based on your preferences.
Builder
class Builder
A builder that collects arguments to be shown on the vertical list view.
Summary
Public constructors
Public methods
addListItem
fun addListItem(
listItem: PromptContentItem,
index: Int
): PromptVerticalListContentView.Builder
Optional: Adds a list item in the current row.
Parameters |
listItem |
PromptContentItem: The list item view to display This value cannot be null . |
index |
Int: The position at which to add the item |
Exceptions |
java.lang.IllegalArgumentException |
If the number of list items exceeds certain limit. |
setDescription
fun setDescription(description: String): PromptVerticalListContentView.Builder
Optional: Sets a description that will be shown on the content view.
Parameters |
description |
String: The description to display. This value cannot be null . |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# PromptVerticalListContentView.Builder\n\nAdded in [API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nBuilder\n=======\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/hardware/biometrics/PromptVerticalListContentView.Builder \"View this page in Java\") \n\n```\nclass Builder\n```\n\n|---|------------------------------------------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||\n| ↳ | [android.hardware.biometrics.PromptVerticalListContentView.Builder](#) |\n\nA builder that collects arguments to be shown on the vertical list view.\n\nSummary\n-------\n\n| Public constructors ||\n|----------------------------------|---|\n| [Builder](#Builder())`()` \u003cbr /\u003e |\n\n| Public methods ||\n|--------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [PromptVerticalListContentView.Builder](#) | [addListItem](#addListItem(android.hardware.biometrics.PromptContentItem))`(`listItem:` `[PromptContentItem](/reference/kotlin/android/hardware/biometrics/PromptContentItem)`)` Optional: Adds a list item in the current row. |\n| [PromptVerticalListContentView.Builder](#) | [addListItem](#addListItem(android.hardware.biometrics.PromptContentItem,%20kotlin.Int))`(`listItem:` `[PromptContentItem](/reference/kotlin/android/hardware/biometrics/PromptContentItem)`, `index:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`)` Optional: Adds a list item in the current row. |\n| [PromptVerticalListContentView](/reference/kotlin/android/hardware/biometrics/PromptVerticalListContentView) | [build](#build())`()` Creates a [PromptVerticalListContentView](/reference/kotlin/android/hardware/biometrics/PromptVerticalListContentView). |\n| [PromptVerticalListContentView.Builder](#) | [setDescription](#setDescription(kotlin.String))`(`description:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`)` Optional: Sets a description that will be shown on the content view. |\n\nPublic constructors\n-------------------\n\n### Builder\n\n```\nBuilder()\n```\n\nPublic methods\n--------------\n\n### addListItem\n\nAdded in [API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nfun addListItem(listItem: PromptContentItem): PromptVerticalListContentView.Builder\n```\n\nOptional: Adds a list item in the current row.\n\n| Parameters ||\n|------------|--------------------------------------------------------------------------------------------------------------------------------------------------|\n| `listItem` | [PromptContentItem](/reference/kotlin/android/hardware/biometrics/PromptContentItem): The list item view to display This value cannot be `null`. |\n\n| Return ||\n|--------------------------------------------|--------------------------------------------|\n| [PromptVerticalListContentView.Builder](#) | This builder. This value cannot be `null`. |\n\n| Exceptions ||\n|--------------------------------------|----------------------------------------------------|\n| `java.lang.IllegalArgumentException` | If the number of list items exceeds certain limit. |\n\n### addListItem\n\nAdded in [API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nfun addListItem(\n listItem: PromptContentItem, \n index: Int\n): PromptVerticalListContentView.Builder\n```\n\nOptional: Adds a list item in the current row.\n\n| Parameters ||\n|------------|--------------------------------------------------------------------------------------------------------------------------------------------------|\n| `listItem` | [PromptContentItem](/reference/kotlin/android/hardware/biometrics/PromptContentItem): The list item view to display This value cannot be `null`. |\n| `index` | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html): The position at which to add the item |\n\n| Return ||\n|--------------------------------------------|--------------------------------------------|\n| [PromptVerticalListContentView.Builder](#) | This builder. This value cannot be `null`. |\n\n| Exceptions ||\n|--------------------------------------|----------------------------------------------------|\n| `java.lang.IllegalArgumentException` | If the number of list items exceeds certain limit. |\n\n### build\n\nAdded in [API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nfun build(): PromptVerticalListContentView\n```\n\nCreates a [PromptVerticalListContentView](/reference/kotlin/android/hardware/biometrics/PromptVerticalListContentView).\n\n| Return ||\n|--------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [PromptVerticalListContentView](/reference/kotlin/android/hardware/biometrics/PromptVerticalListContentView) | An instance of [PromptVerticalListContentView](/reference/kotlin/android/hardware/biometrics/PromptVerticalListContentView). This value cannot be `null`. |\n\n### setDescription\n\nAdded in [API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nfun setDescription(description: String): PromptVerticalListContentView.Builder\n```\n\nOptional: Sets a description that will be shown on the content view.\n\n| Parameters ||\n|---------------|--------------------------------------------------------------------------------------------------------------------------------------------|\n| `description` | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html): The description to display. This value cannot be `null`. |\n\n| Return ||\n|--------------------------------------------|--------------------------------------------|\n| [PromptVerticalListContentView.Builder](#) | This builder. This value cannot be `null`. |"]]