# AuthenticationRequest.Biometric.Fallback.CustomOption

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

*** ** * ** ***


```
public final class AuthenticationRequest.Biometric.Fallback.CustomOption extends AuthenticationRequest.Biometric.Fallback
```

<br />

|---|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object.html) |||
| ↳ | [androidx.biometric.AuthenticationRequest.Biometric.Fallback](https://developer.android.com/reference/androidx/biometric/AuthenticationRequest.Biometric.Fallback) ||
|   | ↳ | [androidx.biometric.AuthenticationRequest.Biometric.Fallback.CustomOption](https://developer.android.com/reference/androidx/biometric/AuthenticationRequest.Biometric.Fallback.CustomOption) |

*** ** * ** ***

Custom Fallback option displayed as the negative button in prompt authentication screen if it is the only option or displayed in a list in the fallback options page if there are more than one.

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/androidx/biometric/AuthenticationRequest.Biometric.Fallback.CustomOption#CustomOption(kotlin.String,kotlin.Int)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html text, int iconType)` |

| ### Public methods |
|---|---|
| `final int` | `https://developer.android.com/reference/androidx/biometric/AuthenticationRequest.Biometric.Fallback.CustomOption#getIconType()()` Icon to be shown for the fallback option |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/biometric/AuthenticationRequest.Biometric.Fallback.CustomOption#getText()()` Text to be shown on the fallback option for the prompt. |

## Public constructors

### CustomOption

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

```
public CustomOption(@NonNull String text, int iconType)
```

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html text` | Text to be shown on the fallback option for the prompt. |
| `int iconType` | Icon to be shown for the fallback option Value is one of the following: - `0` - `1` - `2` - `3` <br /> |

## Public methods

### getIconType

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

```
public final int getIconType()
```

Icon to be shown for the fallback option

### getText

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

```
public final @NonNull String getText()
```

Text to be shown on the fallback option for the prompt.