onPositive

fun onPositive(listener: ColorListener)

Set the ColorListener.

Parameters

listener

Listener that is invoked with the selected color when the positive button is clicked.


fun onPositive(@StringRes positiveRes: Int, listener: ColorListener? = null)

Set the text of the positive button and set the ColorListener.

Parameters

positiveRes

The String resource id for the positive button.

listener

Listener that is invoked with the selected color when the positive button is clicked.


fun onPositive(positiveText: String, listener: ColorListener? = null)

Set the text of the positive button and set the ColorListener.

Parameters

positiveText

The text for the positive button.

listener

Listener that is invoked with the selected color when the positive button is clicked.


fun onPositive(    @StringRes positiveRes: Int,     @DrawableRes drawableRes: Int,     listener: ColorListener? = null)

Set the text of the positive button and set the ColorListener.

Parameters

positiveRes

The String resource id for the positive button.

drawableRes

The drawable resource for the button icon.

listener

Listener that is invoked with the selected color when the positive button is clicked.


fun onPositive(    positiveText: String,     @DrawableRes drawableRes: Int,     listener: ColorListener? = null)

Set the text of the positive button and set the ColorListener.

Parameters

positiveText

The text for the positive button.

drawableRes

The drawable resource for the button icon.

listener

Listener that is invoked with the selected color when the positive button is clicked.


fun onPositive(    @StringRes positiveRes: Int,     drawable: Drawable,     listener: ColorListener? = null)

Set the text of the positive button and set the ColorListener.

Parameters

positiveRes

The String resource id for the positive button.

drawable

The drawable for the button icon.

listener

Listener that is invoked with the selected color when the positive button is clicked.


fun onPositive(    positiveText: String,     drawable: Drawable,     listener: ColorListener? = null)

Set the text of the positive button and set the ColorListener.

Parameters

positiveText

The text for the positive button.

drawable

The drawable for the button icon.

listener

Listener that is invoked with the selected color when the positive button is clicked.