Delegate DisplayPromptAsyncDelegate
Defines delegate that displays a prompt dialog to the application user with the intent to capture a single string value.
public delegate Task<string> DisplayPromptAsyncDelegate(object? owner, string title, string message, string accept = "OK", string cancel = "Cancel", string? placeholder = null, int maxLength = -1, Keyboard? keyboard = null, string initialValue = "")
Parameters
ownerobjectThe object which called the prompt dialog.
titlestringThe title of the prompt dialog.
messagestringThe body text of the prompt dialog.
acceptstringText to be displayed on the 'Accept' button.
cancelstringText to be displayed on the 'Cancel' button.
placeholderstringThe placeholder text to display in the prompt. Can be null when no placeholder is desired.
maxLengthintThe maximum length of the user response.
keyboardKeyboardThe keyboard type to use for the user response.
initialValuestringA pre-defined response that will be displayed, and which can be edited by the user.