alert

fun alert(message: String, title: String? = null, buttonLabel: String? = null, callback: () -> Unit)

Show alert dialog.

Parameters

message

a message

title

an optional dialog title (defaults to Alert)

buttonLabel

an optional button label (defaults to OK)

callback

a callback function