Added in [API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element.md.txt#ApiLevels) Summary: [Nested Classes](https://developer.android.com/reference/android/hardware/biometrics/PromptContentViewWithMoreOptionsButton.md.txt#nestedclasses) \| [Inherited Constants](https://developer.android.com/reference/android/hardware/biometrics/PromptContentViewWithMoreOptionsButton.md.txt#inhconstants) \| [Fields](https://developer.android.com/reference/android/hardware/biometrics/PromptContentViewWithMoreOptionsButton.md.txt#lfields) \| [Methods](https://developer.android.com/reference/android/hardware/biometrics/PromptContentViewWithMoreOptionsButton.md.txt#pubmethods) \| [Inherited Methods](https://developer.android.com/reference/android/hardware/biometrics/PromptContentViewWithMoreOptionsButton.md.txt#inhmethods)

# PromptContentViewWithMoreOptionsButton

*** ** * ** ***


`
public

final

class
PromptContentViewWithMoreOptionsButton
`


`

extends Object


`

`


implements

Parcelable,

PromptContentView


`

|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object.md.txt) ||
| ↳ | android.hardware.biometrics.PromptContentViewWithMoreOptionsButton |

<br />

*** ** * ** ***

Contains the information of the template of content view with a more options button for
Biometric Prompt.


This button should be used to provide more options for sign in or other purposes, such as when a
user needs to select between multiple app-specific accounts or profiles that are available for
sign in.


Apps should avoid using this when possible because it will create additional steps that the user
must navigate through - clicking the more options button will dismiss the prompt, provide the app
an opportunity to ask the user for the correct option, and finally allow the app to decide how to
proceed once selected.


Here's how you'd set a `PromptContentViewWithMoreOptionsButton` on a Biometric
Prompt:

```
BiometricPrompt biometricPrompt = new BiometricPrompt.Builder(...)
    .setTitle(...)
    .setSubTitle(...)
    .setContentView(new PromptContentViewWithMoreOptionsButton.Builder()
        .setDescription("test description")
        .setMoreOptionsButtonListener(executor, listener)
        .build())
    .build();
```

<br />

## Summary

| ### Nested classes ||
|---|---|
| ` class` | `PromptContentViewWithMoreOptionsButton.Builder` A builder that collects arguments to be shown on the content view with more options button. |

### Inherited constants

From interface `android.os.Parcelable` `int` `CONTENTS_FILE_DESCRIPTOR`

Descriptor bit used with `describeContents()`: indicates that
the Parcelable object's flattened representation includes a file descriptor.


`int` `PARCELABLE_WRITE_RETURN_VALUE`

Flag for use with `writeToParcel(Parcel, int)`: the object being written
is a return value, that is the result of a function such as
"`Parcelable someFunction()`",
"`void someFunction(out Parcelable)`", or
"`void someFunction(inout Parcelable)`".


| ### Fields ||
|---|---|
| ` public static final Creator<PromptContentViewWithMoreOptionsButton>` | `CREATOR` |

| ### Public methods ||
|---|---|
| ` int` | ` describeContents() ` Describe the kinds of special objects contained in this Parcelable instance's marshaled representation. |
| ` String` | ` getDescription() ` Gets the description for the content view, as set by `PromptContentViewWithMoreOptionsButton.Builder.setDescription(String)`. |
| ` DialogInterface.OnClickListener` | ` getMoreOptionsButtonListener() ` Gets the click listener for the more options button on the content view, as set by `PromptContentViewWithMoreOptionsButton.Builder.setMoreOptionsButtonListener(Executor,DialogInterface.OnClickListener)`. |
| ` void` | ` writeToParcel(Parcel dest, int flags) ` Flatten this object in to a Parcel. |

### Inherited methods

From class `

java.lang.Object

` `


Object` `
clone()
`

Creates and returns a copy of this object.


`


boolean` `
equals(Object obj)
`

Indicates whether some other object is "equal to" this one.


`


void` `
finalize()
`

Called by the garbage collector on an object when garbage collection
determines that there are no more references to the object.


`


final

Class<?>` `
getClass()
`

Returns the runtime class of this `Object`.


`


int` `
hashCode()
`

Returns a hash code value for the object.


`


final

void` `
notify()
`

Wakes up a single thread that is waiting on this object's
monitor.


`


final

void` `
notifyAll()
`

Wakes up all threads that are waiting on this object's monitor.


`


String` `
toString()
`

Returns a string representation of the object.


`


final

void` `
wait(long timeoutMillis, int nanos)
`

Causes the current thread to wait until it is awakened, typically
by being *notified* or *interrupted*, or until a
certain amount of real time has elapsed.


`


final

void` `
wait(long timeoutMillis)
`

Causes the current thread to wait until it is awakened, typically
by being *notified* or *interrupted*, or until a
certain amount of real time has elapsed.


`


final

void` `
wait()
`

Causes the current thread to wait until it is awakened, typically
by being *notified* or *interrupted*.


From interface `

android.os.Parcelable

` `
abstract


int` `
describeContents()
`

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


`
abstract


void` `
writeToParcel(Parcel dest, int flags)
`

Flatten this object in to a Parcel.


## Fields

### CREATOR

Added in [API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element.md.txt#ApiLevels)

```
public static final Creator<PromptContentViewWithMoreOptionsButton> CREATOR
```

<br />

<br />

**See also:**

- `Parcelable.Creator`

## Public methods

### describeContents

Added in [API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element.md.txt#ApiLevels)

```
public int describeContents ()
```

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(Parcel,int)`,
the return value of this method must include the
`CONTENTS_FILE_DESCRIPTOR` bit.

<br />

| Returns ||
|---|---|
| `int` | a bitmask indicating the set of special object types marshaled by this Parcelable object instance. Value is either `0` or - `CONTENTS_FILE_DESCRIPTOR` |

### getDescription

Added in [API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element.md.txt#ApiLevels)

```
public String getDescription ()
```

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


Requires `Manifest.permission.SET_BIOMETRIC_DIALOG_ADVANCED`

<br />

| Returns ||
|---|---|
| `String` | The description for the content view, or null if the content view has no description. <br /> |

### getMoreOptionsButtonListener

Added in [API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element.md.txt#ApiLevels)

```
public DialogInterface.OnClickListener getMoreOptionsButtonListener ()
```

Gets the click listener for the more options button on the content view, as set by
`PromptContentViewWithMoreOptionsButton.Builder.setMoreOptionsButtonListener(Executor,DialogInterface.OnClickListener)`.


Requires `Manifest.permission.SET_BIOMETRIC_DIALOG_ADVANCED`

<br />

| Returns ||
|---|---|
| `DialogInterface.OnClickListener` | The click listener for the more options button on the content view. This value cannot be `null`. <br /> |

### writeToParcel

Added in [API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element.md.txt#ApiLevels)

```
public void writeToParcel (Parcel dest, 
                int flags)
```

Flatten this object in to a Parcel.

<br />

| Parameters ||
|---|---|
| `dest` | `Parcel`: This value cannot be `null`. <br /> |
| `flags` | `int`: Additional flags about how the object should be written. May be 0 or `Parcelable.PARCELABLE_WRITE_RETURN_VALUE`. Value is either `0` or a combination of the following: - `Parcelable.PARCELABLE_WRITE_RETURN_VALUE` |