addResponse

open fun addResponse(id: String, label: String)

Adds a response with @id and @label to @self.

Responses are represented as buttons in the dialog.

Response ID must be unique. It will be used in signal@AlertDialog::response to tell which response had been activated, as well as to inspect and modify the response later.

An embedded underline in @label indicates a mnemonic.

method@AlertDialog.set_response_label can be used to change the response label after it had been added.

method@AlertDialog.set_response_enabled and method@AlertDialog.set_response_appearance can be used to customize the responses further.

Since

1.5

Parameters

id

the response ID

label

the response label