onPositive

fun onPositive(positiveListener: CalendarDateListener)

Set a listener.

Parameters

positiveListener

Listener that is invoked when the positive button is clicked.


fun onPositive(@StringRes positiveRes: Int, positiveListener: CalendarDateListener? = 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, positiveListener: CalendarDateListener? = 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,     @DrawableRes drawableRes: Int,     positiveListener: CalendarDateListener? = 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,     @DrawableRes drawableRes: Int,     positiveListener: CalendarDateListener? = 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.