PromptVerticalListContentView.Builder
public
static
final
class
PromptVerticalListContentView.Builder
extends Object
| java.lang.Object | |
| ↳ | android.hardware.biometrics.PromptVerticalListContentView.Builder |
A builder that collects arguments to be shown on the vertical list view.
Summary
Public constructors | |
|---|---|
Builder()
|
|
Public methods | |
|---|---|
PromptVerticalListContentView.Builder
|
addListItem(PromptContentItem listItem)
Optional: Adds a list item in the current row. |
PromptVerticalListContentView.Builder
|
addListItem(PromptContentItem listItem, int index)
Optional: Adds a list item in the current row. |
PromptVerticalListContentView
|
build()
Creates a |
PromptVerticalListContentView.Builder
|
setDescription(String description)
Optional: Sets a description that will be shown on the content view. |
Inherited methods | |
|---|---|
Public constructors
Builder
public Builder ()
Public methods
addListItem
public PromptVerticalListContentView.Builder addListItem (PromptContentItem listItem)
Optional: Adds a list item in the current row.
| Parameters | |
|---|---|
listItem |
PromptContentItem: The list item view to display.
This value cannot be null. |
| Returns | |
|---|---|
PromptVerticalListContentView.Builder |
This builder.
This value cannot be null. |
| Throws | |
|---|---|
IllegalArgumentException |
If the number of list items exceeds certain limit. |
addListItem
public PromptVerticalListContentView.Builder addListItem (PromptContentItem listItem, int index)
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 |
| Returns | |
|---|---|
PromptVerticalListContentView.Builder |
This builder.
This value cannot be null. |
| Throws | |
|---|---|
IllegalArgumentException |
If the number of list items exceeds certain limit. |
build
public PromptVerticalListContentView build ()
Creates a PromptVerticalListContentView.
| Returns | |
|---|---|
PromptVerticalListContentView |
An instance of PromptVerticalListContentView.
This value cannot be null. |
setDescription
public PromptVerticalListContentView.Builder setDescription (String description)
Optional: Sets a description that will be shown on the content view.
| Parameters | |
|---|---|
description |
String: The description to display.
This value cannot be null. |
| Returns | |
|---|---|
PromptVerticalListContentView.Builder |
This builder.
This value cannot be null. |