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

positiveButton

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

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

Parameters

text - Positive Button Text, Defaults to "OK"

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