AlertDialog.defaultResponse

Set defaultResponse property.

  1. string defaultResponse [@property getter]
  2. string defaultResponse [@property setter]
    class AlertDialog
    @property
    void
    defaultResponse
    (
    string propval
    )

Parameters

propval string

The response ID of the default response.

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

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