library / org.akop.kotx.ext.app / AlertDialogButton

AlertDialogButton

class AlertDialogButton

Helper class to set alert dialog buttons.

Constructors

<init>

AlertDialogButton()

Helper class to set alert dialog buttons.

Properties

onClick

var onClick: (dialog: DialogInterface, which: Int) -> Unit

text

var text: String?

textResId

var textResId: Int

Functions

invoke

operator fun invoke(caption: String? = null, onClick: (dialog: DialogInterface, which: Int) -> Unit = null): Unit

Sets click handler and caption for the button.

operator fun invoke(captionResId: Int = 0, onClick: (dialog: DialogInterface, which: Int) -> Unit = null): Unit

Sets click handler and captionResId for the button.