PromptVerticalListContentView
public final class PromptVerticalListContentView implements PromptContentView
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 PromptVerticalListContentView.BuilderA builder used to set individual options for the |
Public methods |
|
|---|---|
@Nullable String |
Gets the description for the content view, as set by |
@NonNull List<PromptContentItem> |
Gets the list of items on the content view, as set by |
Public methods
getDescription
public @Nullable String getDescription()
Gets the description for the content view, as set by setDescription.
getListItems
public @NonNull List<PromptContentItem> getListItems()
Gets the list of items on the content view, as set by addListItem.
| Returns | |
|---|---|
@NonNull List<PromptContentItem> |
The item list on the content view. |