AlertDialog.getDefaultButton

int getDefaultButton() nothrow

Returns the index of the default button.

Returns

the index of the default button, or -1