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

alert

@JvmOverloads fun Context.alert(message: String, title: String = "", positiveButton: String? = null, cancelable: Boolean = true, callback: (DialogInterface) -> Unit = {}): Builder

Display AlertDialog instantly

Parameters

title - optional, title

message - to display

positiveButton - optional, button text

cancelable - able to cancel

callback - callback of click ok button

@JvmOverloads fun Context.alert(message: String, title: String = "", positiveButton: String? = null, cancelable: Boolean = true, callback: F1<DialogInterface>?): Builder

Display AlertDialog instantly for SAM Conversion

Parameters

title - optional, title

message - to display

positiveButton - optional, button text

cancelable - able to cancel

callback - callback of click ok button