PromptVerticalListContentView


class PromptVerticalListContentView : PromptContentView, Parcelable
kotlin.Any
   ↳ android.hardware.biometrics.PromptVerticalListContentView

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 biometricPrompt = new BiometricPrompt.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 classes

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

Inherited constants
Public methods
Int

Describe the kinds of special objects contained in this Parcelable instance's marshaled representation.

String?

Gets the description for the content view, as set by PromptVerticalListContentView.Builder#setDescription(String).

MutableList<PromptContentItem!>

Gets the list of items on the content view, as set by PromptVerticalListContentView.Builder#addListItem(PromptContentItem).

static Int

Returns the maximum number of characters allowed for each item's text.

static Int

Returns the maximum count of the list items.

Unit
writeToParcel(dest: Parcel, flags: Int)

Flatten this object in to a Parcel.

Properties
static Parcelable.Creator<PromptVerticalListContentView!>

Public methods

describeContents

fun describeContents(): Int

Describe the kinds of special objects contained in this Parcelable instance's marshaled representation. For example, if the object will include a file descriptor in the output of writeToParcel(android.os.Parcel,int), the return value of this method must include the CONTENTS_FILE_DESCRIPTOR bit.

Return
Int a bitmask indicating the set of special object types marshaled by this Parcelable object instance. Value is either 0 or android.os.Parcelable#CONTENTS_FILE_DESCRIPTOR

getDescription

fun getDescription(): String?

Gets the description for the content view, as set by PromptVerticalListContentView.Builder#setDescription(String).

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

getListItems

fun getListItems(): MutableList<PromptContentItem!>

Gets the list of items on the content view, as set by PromptVerticalListContentView.Builder#addListItem(PromptContentItem).

Return
MutableList<PromptContentItem!> The item list on the content view. This value cannot be null.

getMaxEachItemCharacterNumber

static fun getMaxEachItemCharacterNumber(): Int

Returns the maximum number of characters allowed for each item's text.

getMaxItemCount

static fun getMaxItemCount(): Int

Returns the maximum count of the list items.

writeToParcel

fun writeToParcel(
    dest: Parcel,
    flags: Int
): Unit

Flatten this object in to a Parcel.

Parameters
dest Parcel: The Parcel in which the object should be written. This value cannot be null.
flags Int: Additional flags about how the object should be written. May be 0 or PARCELABLE_WRITE_RETURN_VALUE. Value is either 0 or a combination of android.os.Parcelable#PARCELABLE_WRITE_RETURN_VALUE, and android.os.Parcelable.PARCELABLE_ELIDE_DUPLICATES

Properties