RichUtils / pyxis.uzuki.live.richutilskt.utils / android.content.Context / confirm

confirm

@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

Parameters

title - optional, title

message - to display

positiveButton - optional, button text

negativeButton - optional, button text

cancelable - able to cancel

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

Parameters

title - optional, title

message - to display

positiveButton - optional, button text

negativeButton - optional, button text

cancelable - able to cancel

callback - callback of click ok button