AlertDialog.setDefaultResponse

Sets the ID of the default response of self.

If set, pressing <kbd>Enter</kbd> will activate the corresponding button.

If set to NULL or to a non-existent response ID, pressing <kbd>Enter</kbd> will do nothing.

class AlertDialog
void
setDefaultResponse
(
string response = null
)

Parameters

response string

the default response ID