AlertDialog.getCancelButton

Returns the index of the cancel button.

class AlertDialog
int
getCancelButton
()

Return Value

Type: int

the index of the cancel button, or -1