onNegative

fun onNegative(negativeListener: NegativeListener)

Set a listener.

Parameters

negativeListener

Listener that is invoked when the negative button is clicked.


fun onNegative(@StringRes negativeRes: Int, negativeListener: NegativeListener? = null)

Set the text of the negative button and optionally a listener.

Parameters

negativeRes

The String resource id for the negative button.

negativeListener

Listener that is invoked when the negative button is clicked.


fun onNegative(negativeText: String, negativeListener: NegativeListener? = null)

Set the text of the negative button and optionally a listener.

Parameters

negativeText

The text for the negative button.

negativeListener

Listener that is invoked when the negative button is clicked.


fun onNegative(    @StringRes negativeRes: Int,     @DrawableRes drawableRes: Int,     negativeListener: NegativeListener? = null)

Set the text and drawable of the negative button and optionally a listener.

Parameters

negativeRes

The String resource id for the negative button.

negativeListener

Listener that is invoked when the negative button is clicked.

drawableRes

The drawable resource for the button icon.


fun onNegative(    negativeText: String,     @DrawableRes drawableRes: Int,     negativeListener: NegativeListener? = null)

Set the text and drawable of the negative button and optionally a listener.

Parameters

negativeText

The text for the negative button.

negativeListener

Listener that is invoked when the negative button is clicked.

drawableRes

The drawable resource for the button icon.