Set custom button labels
Array of button labels (default: ["OK", "Cancel"])
Self for chaining
Set the default text in the input field
Default text value
Self for chaining
Set additional informative text below the main message
The informative text
Self for chaining
Set the callback for button presses
Function receiving the 0-based button index and the text the user entered
Self for chaining
Show the prompt dialog
HSUITextPrompt
A modal dialog with text input* Shows a blocking dialog with a text input field. The callback receives both the button index and the entered text.
Example