BiometricPrompt.Builder.SetConfirmationRequired(Boolean) 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.
Optional: Sets a hint to the system for whether to require user confirmation after authentication.
[Android.Runtime.Register("setConfirmationRequired", "(Z)Landroid/hardware/biometrics/BiometricPrompt$Builder;", "GetSetConfirmationRequired_ZHandler", ApiSince=29)]
public virtual Android.Hardware.Biometrics.BiometricPrompt.Builder SetConfirmationRequired(bool requireConfirmation);
[<Android.Runtime.Register("setConfirmationRequired", "(Z)Landroid/hardware/biometrics/BiometricPrompt$Builder;", "GetSetConfirmationRequired_ZHandler", ApiSince=29)>]
abstract member SetConfirmationRequired : bool -> Android.Hardware.Biometrics.BiometricPrompt.Builder
override this.SetConfirmationRequired : bool -> Android.Hardware.Biometrics.BiometricPrompt.Builder
Parameters
- requireConfirmation
- Boolean
true if explicit user confirmation should be required, or false otherwise.
Returns
This builder. This value cannot be null.
- Attributes
Remarks
Optional: Sets a hint to the system for whether to require user confirmation after authentication. For example, implicit modalities like face and iris are passive, meaning they don't require an explicit user action to complete authentication. If set to true, these modalities should require the user to take some action (e.g. press a button) before AuthenticationCallback.onAuthenticationSucceeded(AuthenticationResult) is called. Defaults to true.
A typical use case for not requiring confirmation would be for low-risk transactions, such as re-authenticating a recently authenticated application. A typical use case for requiring confirmation would be for authorizing a purchase.
Note that this just passes a hint to the system, which the system may then ignore. For example, a value of false may be ignored if the user has disabled implicit authentication in Settings, or if it does not apply to a particular modality (e.g. fingerprint).
Android reference for android.hardware.biometrics.BiometricPrompt.Builder.setConfirmationRequired.
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.