confirm

abstract fun confirm(title: String, text: String, yes: String, no: String, onAnswer: Listener<UiAction>): Subscription(source)

Asks a yes/no question over this plugin's open page. It opens only while one of this plugin's pages is the open page. text lines break at '\n' (at most 3 lines, MAX_CONFIRM_TEXT characters); null yes/no mean "Yes"/"No". A null listener gets no answer.

Exactly once: a call with a listener is answered exactly once on the plugin's executor, unless cancel withdraws it first. A call made while the plugin is stopping comes back cancelled and is never answered. value is 1 for Yes, and 0 for No, BACK, dismissed (its page closed), not over this plugin's open page, another confirm or speller already up, or inert (without UI_INPUTS). Needs api 5.

Since

api 5