# PromptContentViewWithMoreOptionsButton

Artifact: [androidx.biometric:biometric](https://developer.android.com/jetpack/androidx/releases/biometric) [View Source](https://cs.android.com/search?q=file:androidx/biometric/PromptContentViewWithMoreOptionsButton.java+class:androidx.biometric.PromptContentViewWithMoreOptionsButton) Added in [1.4.0-beta01](https://developer.android.com/jetpack/androidx/releases/biometric#1.4.0-beta01)

*** ** * ** ***


```
public final class PromptContentViewWithMoreOptionsButton implements PromptContentView
```

<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.PromptInfo promptInfo = new BiometricPrompt.PromptInfo.Builder()
    .setTitle(...)
    .setSubTitle(...)
    .setContentView(
        new PromptContentViewWithMoreOptionsButton.Builder()
            .setDescription("test description")
            .build()
     )
    .build();
```

## Summary

| ### Nested types |
|---|
| `public final class https://developer.android.com/reference/androidx/biometric/PromptContentViewWithMoreOptionsButton.Builder` A builder used to set individual options for the `https://developer.android.com/reference/androidx/biometric/PromptContentViewWithMoreOptionsButton` class. |

| ### Public methods |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/java/lang/String.html` | `@https://developer.android.com/reference/androidx/annotation/RequiresPermission(value = "android.permission.SET_BIOMETRIC_DIALOG_ADVANCED") https://developer.android.com/reference/androidx/biometric/PromptContentViewWithMoreOptionsButton#getDescription()()` Gets the description for the content view, as set by `https://developer.android.com/reference/androidx/biometric/PromptContentViewWithMoreOptionsButton.Builder#setDescription(java.lang.String)`. |

## Public methods

### getDescription

Added in [1.4.0-beta01](https://developer.android.com/jetpack/androidx/releases/biometric#1.4.0-beta01)

```
@RequiresPermission(value = "android.permission.SET_BIOMETRIC_DIALOG_ADVANCED")
public @Nullable String getDescription()
```

Gets the description for the content view, as set by `https://developer.android.com/reference/androidx/biometric/PromptContentViewWithMoreOptionsButton.Builder#setDescription(java.lang.String)`.

| Returns |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/java/lang/String.html` | The description for the content view, or null if the content view has no description. |