setNeutralButton
open fun setNeutralButton(@StringRes textId: Int, listener: DialogInterface.OnClickListener): AlertDialog.Builder(source)
Set a listener to be invoked when the neutral 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 neutral button
listener
The DialogInterface.OnClickListener to use.
open fun setNeutralButton(text: CharSequence, listener: DialogInterface.OnClickListener): AlertDialog.Builder(source)
Set a listener to be invoked when the neutral 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 neutral button
listener
The DialogInterface.OnClickListener to use.