kvision / pl.treksoft.kvision.cordova / Notification

Notification

object Notification

Main object for Cordova notifications.

Functions

alert

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

Show alert dialog.

beep

fun beep(times: Int = 1): Unit

Play a beep sound.

confirm

fun confirm(message: String, title: String? = null, buttonLabels: List<String>? = null, callback: (Int) -> Unit): Unit

Show confirm dialog.

prompt

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

Show prompt dialog.

Extension Functions

createInstance

fun <T> Any?.createInstance(vararg args: dynamic): T

Helper function for creating JavaScript objects from dynamic constructors.