ConfirmationPrompt.Builder.SetPromptText 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 |
|---|---|
| SetPromptText(ICharSequence) |
Sets the prompt text for the prompt. |
| SetPromptText(String) |
Sets the confirmation prompt's message from a managed string. |
SetPromptText(ICharSequence)
Sets the prompt text for the prompt.
[Android.Runtime.Register("setPromptText", "(Ljava/lang/CharSequence;)Landroid/security/ConfirmationPrompt$Builder;", "", ApiSince=28)]
public Android.Security.ConfirmationPrompt.Builder? SetPromptText(Java.Lang.ICharSequence? promptText);
[<Android.Runtime.Register("setPromptText", "(Ljava/lang/CharSequence;)Landroid/security/ConfirmationPrompt$Builder;", "", ApiSince=28)>]
member this.SetPromptText : Java.Lang.ICharSequence -> Android.Security.ConfirmationPrompt.Builder
Parameters
- promptText
- ICharSequence
the text to present in the prompt.
Returns
the builder.
- Attributes
Remarks
Sets the prompt text for the prompt.
Android reference for android.security.ConfirmationPrompt.Builder.setPromptText.
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
SetPromptText(String)
Sets the confirmation prompt's message from a managed string.
public Android.Security.ConfirmationPrompt.Builder? SetPromptText(string? promptText);
member this.SetPromptText : string -> Android.Security.ConfirmationPrompt.Builder
Parameters
- promptText
- String
The managed string to display as the confirmation prompt's message.
Returns
This builder, so that more settings can be supplied before calling Build().
Remarks
This .NET overload converts a non-null string to String and calls SetPromptText(ICharSequence). A null string is passed through as null. Build() rejects a missing or empty prompt message.
See the string-overload generator and the Android builder implementation.