@JvmOverloads fun Context.confirm(message: String, callback: DialogInterface.() -> Unit, title: String = "", positiveButton: String? = null, negativeButton: String? = null, cancelable: Boolean = true): Builder
Display AlertDialog instantly with confirm
positiveButton
- optional, button text
negativeButton
- optional, button text
callback
- callback of click ok button
@JvmOverloads fun Context.confirm(message: String, callback: F1<DialogInterface>?, title: String = "", positiveButton: String? = null, negativeButton: String? = null, cancelable: Boolean = true): Builder
Display AlertDialog instantly with confirm for SAM Conversion
positiveButton
- optional, button text