EmbeddedBiometricPrompt.Builder.AddFallbackOption Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| AddFallbackOption(ICharSequence, BiometricManagerIconType, IExecutor, IDialogInterfaceOnClickListener) |
Optional: Sets the text, icon, executor, and click listener for a fallback option. |
| AddFallbackOption(String, BiometricManagerIconType, IExecutor, IDialogInterfaceOnClickListener) |
AddFallbackOption(ICharSequence, BiometricManagerIconType, IExecutor, IDialogInterfaceOnClickListener)
Optional: Sets the text, icon, executor, and click listener for a fallback option.
[Android.Runtime.Register("addFallbackOption", "(Ljava/lang/CharSequence;ILjava/util/concurrent/Executor;Landroid/content/DialogInterface$OnClickListener;)Landroid/hardware/biometrics/EmbeddedBiometricPrompt$Builder;", "", ApiSince=37)]
public Android.Hardware.Biometrics.EmbeddedBiometricPrompt.Builder AddFallbackOption(Java.Lang.ICharSequence text, Android.Hardware.Biometrics.BiometricManagerIconType iconType, Java.Util.Concurrent.IExecutor executor, Android.Content.IDialogInterfaceOnClickListener listener);
[<Android.Runtime.Register("addFallbackOption", "(Ljava/lang/CharSequence;ILjava/util/concurrent/Executor;Landroid/content/DialogInterface$OnClickListener;)Landroid/hardware/biometrics/EmbeddedBiometricPrompt$Builder;", "", ApiSince=37)>]
member this.AddFallbackOption : Java.Lang.ICharSequence * Android.Hardware.Biometrics.BiometricManagerIconType * Java.Util.Concurrent.IExecutor * Android.Content.IDialogInterfaceOnClickListener -> Android.Hardware.Biometrics.EmbeddedBiometricPrompt.Builder
Parameters
- text
- ICharSequence
The text to display for the fallback option. This value cannot be null.
- iconType
- BiometricManagerIconType
The icon to display for the fallback option. Value is one of the following: BiometricManager.ICON_TYPE_PASSWORD; BiometricManager.ICON_TYPE_QR_CODE; BiometricManager.ICON_TYPE_ACCOUNT; BiometricManager.ICON_TYPE_GENERIC; BiometricManager.ICON_TYPE_SETTING; BiometricManager.ICON_TYPE_RESET; BiometricManager.ICON_TYPE_MESSAGE; BiometricManager.ICON_TYPE_SUPERVISED
- executor
- IExecutor
The executor to use for the click listener. This value cannot be null. Callback and listener events are dispatched through this Executor, 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(). Otherwise, provide an Executor that dispatches to an appropriate thread.
- listener
- IDialogInterfaceOnClickListener
The click listener to use for the fallback option. This value cannot be null.
Returns
This builder. This value cannot be null.
- Attributes
Remarks
Optional: Sets the text, icon, executor, and click listener for a fallback option.
Android reference for android.hardware.biometrics.EmbeddedBiometricPrompt.Builder.addFallbackOption.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Applies to
AddFallbackOption(String, BiometricManagerIconType, IExecutor, IDialogInterfaceOnClickListener)
public Android.Hardware.Biometrics.EmbeddedBiometricPrompt.Builder AddFallbackOption(string text, Android.Hardware.Biometrics.BiometricManagerIconType iconType, Java.Util.Concurrent.IExecutor executor, Android.Content.IDialogInterfaceOnClickListener listener);
member this.AddFallbackOption : string * Android.Hardware.Biometrics.BiometricManagerIconType * Java.Util.Concurrent.IExecutor * Android.Content.IDialogInterfaceOnClickListener -> Android.Hardware.Biometrics.EmbeddedBiometricPrompt.Builder
Parameters
- text
- String
- iconType
- BiometricManagerIconType
- executor
- IExecutor
- listener
- IDialogInterfaceOnClickListener