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
owner
objectThe object which called the prompt dialog.
title
stringThe title of the prompt dialog.
message
stringThe body text of the prompt dialog.
accept
stringText to be displayed on the 'Accept' button.
cancel
stringText to be displayed on the 'Cancel' button.
placeholder
stringThe placeholder text to display in the prompt. Can be null when no placeholder is desired.
maxLength
intThe maximum length of the user response.
keyboard
KeyboardThe keyboard type to use for the user response.
initialValue
stringA pre-defined response that will be displayed, and which can be edited by the user.