BiometricPrompt.Builder.SetAuthenticationPurpose 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 the authentication purpose for the prompt.
[Android.Runtime.Register("setAuthenticationPurpose", "(I)Landroid/hardware/biometrics/BiometricPrompt$Builder;", "GetSetAuthenticationPurpose_IHandler", ApiSince=37)]
public virtual Android.Hardware.Biometrics.BiometricPrompt.Builder SetAuthenticationPurpose(Android.Hardware.Biometrics.BiometricManagerAuthenticationPurpose purpose);
[<Android.Runtime.Register("setAuthenticationPurpose", "(I)Landroid/hardware/biometrics/BiometricPrompt$Builder;", "GetSetAuthenticationPurpose_IHandler", ApiSince=37)>]
abstract member SetAuthenticationPurpose : Android.Hardware.Biometrics.BiometricManagerAuthenticationPurpose -> Android.Hardware.Biometrics.BiometricPrompt.Builder
override this.SetAuthenticationPurpose : Android.Hardware.Biometrics.BiometricManagerAuthenticationPurpose -> Android.Hardware.Biometrics.BiometricPrompt.Builder
Parameters
Returns
This builder. This value cannot be null.
- Attributes
Remarks
Optional: Sets the authentication purpose for the prompt.
Provides a hint to customize the BiometricPrompt appearance to clarify what the user is authorizing. This is cosmetic only, can vary by device, and does not change security guarantees (see setAllowedAuthenticators(int)).
For example, this may inform the user to click or tap "to pay" instead of "to authenticate".
Android reference for android.hardware.biometrics.BiometricPrompt.Builder.setAuthenticationPurpose.
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.