positiveButton

inline fun AlertDialog.Builder.positiveButton(text: String = "OK", crossinline handleClick: (i: Int) -> 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