askUser

abstract fun askUser(caption: UiString, question: UiString, okLabel: UiString = FixedString("OK"), cancelLabel: UiString = FixedString("Cancel")): String?

Ask the user a question and request a text answer.

Return

The user's anwer or null on cancel.

Parameters

caption

The caption of the query dialog asking the question.

question

The question to ask.

okLabel

The label for the OK button of the query dialog (default: OK)

cancelLabel

The label for the cancel button of the query dialog (default: Cancel)