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

negativeButton

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

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

Parameters

text - Positive Button Text, Defaults to "CANCEL"

handleClick - Callback that works as click listener when negative button is clicked