kvision / pl.treksoft.kvision.cordova / Notification / prompt

prompt

fun prompt(message: String, title: String? = null, buttonLabels: List<String>? = null, defaultText: String? = null, callback: (PromptResponse) -> Unit): Unit

Show prompt dialog.

Parameters

message - a message

title - an optional dialog title (defaults to Prompt)

buttonLabels - an optional list of button labels (defaults to OK,Cancel)

defaultText - default input value (default to empty string)

callback - a callback function