RichUtils / pyxis.uzuki.live.richutilskt.utils / android.content.Context / alert
alert
@JvmOverloads fun Context.alert(title: String? = "", message: 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