PromptVerticalListContentView


class PromptVerticalListContentView : 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

A builder used to set individual options for the PromptVerticalListContentView class.

Public functions

String?

Gets the description for the content view, as set by setDescription.

(Mutable)List<PromptContentItem!>

Gets the list of items on the content view, as set by addListItem.

Public functions

getDescription

Added in 1.4.0-alpha02
fun getDescription(): String?

Gets the description for the content view, as set by setDescription.

Returns
String?

The description for the content view, or null if the content view has no description.

getListItems

Added in 1.4.0-alpha02
fun getListItems(): (Mutable)List<PromptContentItem!>

Gets the list of items on the content view, as set by addListItem.

Returns
(Mutable)List<PromptContentItem!>

The item list on the content view.