Added in API level 35

Builder


class Builder
kotlin.Any
   ↳ android.hardware.biometrics.PromptVerticalListContentView.Builder

A builder that collects arguments to be shown on the vertical list view.

Summary

Public constructors

Public methods
PromptVerticalListContentView.Builder

Optional: Adds a list item in the current row.

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

Optional: Adds a list item in the current row.

PromptVerticalListContentView

Creates a PromptVerticalListContentView.

PromptVerticalListContentView.Builder
setDescription(description: String)

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

Public constructors

Builder

Builder()

Public methods

addListItem

Added in API level 35
fun addListItem(listItem: PromptContentItem): 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.
Return
PromptVerticalListContentView.Builder This builder. This value cannot be null.
Exceptions
java.lang.IllegalArgumentException If this list item exceeds certain character limits or the number of list items exceeds certain limit.

addListItem

Added in API level 35
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
Return
PromptVerticalListContentView.Builder This builder. This value cannot be null.
Exceptions
java.lang.IllegalArgumentException If this list item exceeds certain character limits or the number of list items exceeds certain limit.

build

Added in API level 35
fun build(): PromptVerticalListContentView

Creates a PromptVerticalListContentView.

Return
PromptVerticalListContentView An instance of PromptVerticalListContentView. This value cannot be null.

setDescription

Added in API level 35
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.
Return
PromptVerticalListContentView.Builder This builder. This value cannot be null.
Exceptions
java.lang.IllegalArgumentException If description exceeds certain character limit.