kutils / com.celites.kutils / androidx.appcompat.app.AlertDialog.Builder

Extensions for androidx.appcompat.app.AlertDialog.Builder

negativeButton

fun Builder.negativeButton(text: String = "CANCEL", handleClick: (i: Int) -> Unit = {}): Unit

Helper method to create negative button for Alert dialog and listen to the button's click

neutralButton

fun Builder.neutralButton(text: String, handleClick: (i: Int) -> Unit = {}): Unit

Helper method to create neutral button for Alert dialog and listen to the button's click

positiveButton

fun Builder.positiveButton(text: String = "OK", handleClick: (i: Int) -> Unit = {}): Unit

Helper method to create positive button for Alert dialog and listen to the button's click