setNegativeButton
open fun setNegativeButton(@StringRes textId: Int, listener: DialogInterface.OnClickListener): AlertDialog.Builder(source)
Set a listener to be invoked when the negative button of the dialog is pressed.
Return
This Builder object to allow for chaining of calls to set methods
Parameters
textId
The resource id of the text to display in the negative button
listener
The DialogInterface.OnClickListener to use.
open fun setNegativeButton(text: CharSequence, listener: DialogInterface.OnClickListener): AlertDialog.Builder(source)
Set a listener to be invoked when the negative button of the dialog is pressed.
Return
This Builder object to allow for chaining of calls to set methods
Parameters
text
The text to display in the negative button
listener
The DialogInterface.OnClickListener to use.