onPositive

fun onPositive(positiveListener: PositiveListener)

Set a listener.

Parameters

positiveListener

Listener that is invoked when the positive button is clicked.


fun onPositive(positiveText: String, positiveListener: PositiveListener? = null)

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

Parameters

positiveText

The text for the positive button.

positiveListener

Listener that is invoked when the positive button is clicked.


fun onPositive(@StringRes positiveRes: Int, positiveListener: PositiveListener? = null)

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

Parameters

positiveRes

The String resource id for the positive button.

positiveListener

Listener that is invoked when the positive button is clicked.


fun onPositive(    positiveText: String,     @DrawableRes drawableRes: Int,     positiveListener: PositiveListener? = null)

Set the text and icon of the positive button and optionally a listener.

Parameters

positiveText

The text for the positive button.

drawableRes

The drawable resource for the button icon.

positiveListener

Listener that is invoked when the positive button is clicked.


fun onPositive(    @StringRes positiveRes: Int,     @DrawableRes drawableRes: Int,     positiveListener: PositiveListener? = null)

Set the text and icon of the positive button and optionally a listener.

Parameters

positiveRes

The String resource id for the positive button.

drawableRes

The drawable resource for the button icon.

positiveListener

Listener that is invoked when the positive button is clicked.


fun onPositive(    positiveText: String,     drawable: Drawable,     positiveListener: PositiveListener? = null)

Set the text and icon of the positive button and optionally a listener.

Parameters

positiveText

The text for the positive button.

drawable

The drawable for the button icon.

positiveListener

Listener that is invoked when the positive button is clicked.


fun onPositive(    @StringRes positiveRes: Int,     drawable: Drawable,     positiveListener: PositiveListener? = null)

Set the text and icon of the positive button and optionally a listener.

Parameters

positiveRes

The String resource id for the positive button.

drawable

The drawable for the button icon.

positiveListener

Listener that is invoked when the positive button is clicked.