# PromptContentViewWithMoreOptionsButton.Builder

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

# Builder

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/android/hardware/biometrics/PromptContentViewWithMoreOptionsButton.Builder "View this page in Java")  

```
class Builder
```

|---|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)                                                                                                                           ||
| ↳ | [android.hardware.biometrics.PromptContentViewWithMoreOptionsButton.Builder](https://developer.android.com/reference/kotlin/android/hardware/biometrics/PromptContentViewWithMoreOptionsButton.Builder#) |

A builder that collects arguments to be shown on the content view with more options button.

## Summary

|                                                                     Public constructors                                                                      ||
|-----------------------------------------------------------------------------------------------------------------------------------------------------------|---|
| [Builder](https://developer.android.com/reference/kotlin/android/hardware/biometrics/PromptContentViewWithMoreOptionsButton.Builder#Builder())`()` <br /> |

|                                                                                                                                                                                                                                                                                                                                                                                                         Public methods                                                                                                                                                                                                                                                                                                                                                                                                          ||
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [PromptContentViewWithMoreOptionsButton](https://developer.android.com/reference/kotlin/android/hardware/biometrics/PromptContentViewWithMoreOptionsButton)                  | [build](https://developer.android.com/reference/kotlin/android/hardware/biometrics/PromptContentViewWithMoreOptionsButton.Builder#build())`()` Creates a[PromptContentViewWithMoreOptionsButton](https://developer.android.com/reference/kotlin/android/hardware/biometrics/PromptContentViewWithMoreOptionsButton).                                                                                                                                                                                                                                                                                                                              |
| [PromptContentViewWithMoreOptionsButton.Builder](https://developer.android.com/reference/kotlin/android/hardware/biometrics/PromptContentViewWithMoreOptionsButton.Builder#) | [setDescription](https://developer.android.com/reference/kotlin/android/hardware/biometrics/PromptContentViewWithMoreOptionsButton.Builder#setDescription(kotlin.String))`(`description:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`)` Optional: Sets a description that will be shown on the content view.                                                                                                                                                                                                                                                                                               |
| [PromptContentViewWithMoreOptionsButton.Builder](https://developer.android.com/reference/kotlin/android/hardware/biometrics/PromptContentViewWithMoreOptionsButton.Builder#) | [setMoreOptionsButtonListener](https://developer.android.com/reference/kotlin/android/hardware/biometrics/PromptContentViewWithMoreOptionsButton.Builder#setMoreOptionsButtonListener(java.util.concurrent.Executor,%20android.content.DialogInterface.OnClickListener))`(`executor:` `[Executor](https://developer.android.com/reference/kotlin/java/util/concurrent/Executor.html#)`, `listener:` `[DialogInterface.OnClickListener](https://developer.android.com/reference/kotlin/android/content/DialogInterface.OnClickListener.html#)`)` Required: Sets the executor and click listener for the more options button on the prompt content. |

## Public constructors

### Builder

```
Builder()
```

## Public methods

### build

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

```
fun build(): PromptContentViewWithMoreOptionsButton
```

Creates a[PromptContentViewWithMoreOptionsButton](https://developer.android.com/reference/kotlin/android/hardware/biometrics/PromptContentViewWithMoreOptionsButton).  
Requires[android.Manifest.permission#SET_BIOMETRIC_DIALOG_ADVANCED](https://developer.android.com/reference/kotlin/android/Manifest.permission.html#SET_BIOMETRIC_DIALOG_ADVANCED:kotlin.String)

|                                                                                                                                                                               Return                                                                                                                                                                                ||
|-------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [PromptContentViewWithMoreOptionsButton](https://developer.android.com/reference/kotlin/android/hardware/biometrics/PromptContentViewWithMoreOptionsButton) | An instance of[PromptContentViewWithMoreOptionsButton](https://developer.android.com/reference/kotlin/android/hardware/biometrics/PromptContentViewWithMoreOptionsButton). This value cannot be`null`. |

|                                                              Exceptions                                                               ||
|--------------------------------------|-------------------------------------------------------------------------------------------------|
| `java.lang.IllegalArgumentException` | If the executor of more options button is null, or the listener of more options button is null. |

### setDescription

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

```
fun setDescription(description: String): PromptContentViewWithMoreOptionsButton.Builder
```

Optional: Sets a description that will be shown on the content view.  
Requires[android.Manifest.permission#SET_BIOMETRIC_DIALOG_ADVANCED](https://developer.android.com/reference/kotlin/android/Manifest.permission.html#SET_BIOMETRIC_DIALOG_ADVANCED:kotlin.String)

|                                                                       Parameters                                                                        ||
|---------------|------------------------------------------------------------------------------------------------------------------------------------------|
| `description` | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html):The description to display. This value cannot be`null`. |

|                                                                                                         Return                                                                                                          ||
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------|
| [PromptContentViewWithMoreOptionsButton.Builder](https://developer.android.com/reference/kotlin/android/hardware/biometrics/PromptContentViewWithMoreOptionsButton.Builder#) | This builder. This value cannot be`null`. |

### setMoreOptionsButtonListener

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

```
fun setMoreOptionsButtonListener(
    executor: Executor, 
    listener: DialogInterface.OnClickListener
): PromptContentViewWithMoreOptionsButton.Builder
```

Required: Sets the executor and click listener for the more options button on the prompt content.  
Requires[android.Manifest.permission#SET_BIOMETRIC_DIALOG_ADVANCED](https://developer.android.com/reference/kotlin/android/Manifest.permission.html#SET_BIOMETRIC_DIALOG_ADVANCED:kotlin.String)

|                                                                                                                                                                                                                                                                                                                                                                                     Parameters                                                                                                                                                                                                                                                                                                                                                                                     ||
|------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `executor` | [Executor](https://developer.android.com/reference/kotlin/java/util/concurrent/Executor.html#):Executor that will be used to run the on click callback. This value cannot be`null`. Callback and listener events are dispatched through this[Executor](https://developer.android.com/reference/kotlin/java/util/concurrent/Executor.html#), providing an easy way to control which thread is used. To dispatch events through the main thread of your application, you can use[Context.getMainExecutor()](https://developer.android.com/reference/kotlin/android/content/Context.html#getMainExecutor()). Otherwise, provide an[Executor](https://developer.android.com/reference/kotlin/java/util/concurrent/Executor.html#)that dispatches to an appropriate thread. |
| `listener` | [DialogInterface.OnClickListener](https://developer.android.com/reference/kotlin/android/content/DialogInterface.OnClickListener.html#):Listener containing a callback to be run when the button is pressed. This value cannot be`null`.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |

|                                                                                                         Return                                                                                                          ||
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------|
| [PromptContentViewWithMoreOptionsButton.Builder](https://developer.android.com/reference/kotlin/android/hardware/biometrics/PromptContentViewWithMoreOptionsButton.Builder#) | This builder. This value cannot be`null`. |