Sdílet prostřednictvím


BiometricManager.Strings.PromptMessageFormatted Property

Definition

Provides a localized string that can be shown while the user is authenticating with BiometricPrompt.

public virtual Java.Lang.ICharSequence? PromptMessageFormatted { [Android.Runtime.Register("getPromptMessage", "()Ljava/lang/CharSequence;", "GetGetPromptMessageHandler", ApiSince=31)] get; }
[<get: Android.Runtime.Register("getPromptMessage", "()Ljava/lang/CharSequence;", "GetGetPromptMessageHandler", ApiSince=31)>]
member this.PromptMessageFormatted : Java.Lang.ICharSequence

Property Value

The label for a button that invokes BiometricPrompt for authentication.

Attributes

Remarks

Provides a localized string that can be shown while the user is authenticating with BiometricPrompt.

When possible, this method should use the given authenticator requirements to more precisely specify the authentication type that will be used. For example, if <strong>Class 3</strong> biometric authentication is requested on a device with a <strong>Class 3</strong> fingerprint sensor and a <strong>Class 2</strong> face sensor, the returned string should indicate that fingerprint authentication will be used.

This method should also try to specify which authentication method(s) will be used in practice when multiple authenticators meet the given requirements. For example, if biometric authentication is requested on a device with both face and fingerprint sensors but the user has selected face as their preferred method, the returned string should indicate that face authentication will be used.

This method may return null if none of the requested authenticator types are available, but this should <em>not</em> be relied upon for checking the status of authenticators. Instead, use #canAuthenticate(int).

Java documentation for android.hardware.biometrics.BiometricManager.Strings.getPromptMessage().

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