AlertDialog.getDefaultButton

Returns the index of the default button.

class AlertDialog
int
getDefaultButton
()

Return Value

Type: int

the index of the default button, or -1