AlertDialog.setCloseResponse

Sets the ID of the close response of self.

It will be passed to signalAlertDialog::response if the dialog is closed by pressing <kbd>Escape</kbd> or with a system action.

It doesn't have to correspond to any of the responses in the dialog.

The default close response is close.

class AlertDialog
void
setCloseResponse
(
string response
)

Parameters

response string

the close response ID