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

neutralButton

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

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

Parameters

text - Positive Button Text

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