Notification

open external class Notification(title: String, options: NotificationOptions = definedExternally) : EventTarget

Exposes the JavaScript Notification to Kotlin

Constructors

Link copied to clipboard
fun Notification(title: String, options: NotificationOptions = definedExternally)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun addEventListener(    type: String,     callback: (Event) -> Unit?,     options: dynamic = definedExternally)
fun addEventListener(    type: String,     callback: EventListener?,     options: dynamic = definedExternally)
Link copied to clipboard
fun close()
Link copied to clipboard
fun dispatchEvent(event: Event): Boolean
Link copied to clipboard
fun removeEventListener(    type: String,     callback: (Event) -> Unit?,     options: dynamic = definedExternally)
fun removeEventListener(    type: String,     callback: EventListener?,     options: dynamic = definedExternally)

Properties

Link copied to clipboard
Link copied to clipboard
open val badge: String
Link copied to clipboard
open val body: String
Link copied to clipboard
open val data: Any?
Link copied to clipboard
Link copied to clipboard
open val icon: String
Link copied to clipboard
open val image: String
Link copied to clipboard
open val lang: String
Link copied to clipboard
open val noscreen: Boolean
Link copied to clipboard
var onclick: (MouseEvent) -> dynamic?
Link copied to clipboard
var onerror: (Event) -> dynamic?
Link copied to clipboard
open val renotify: Boolean
Link copied to clipboard
open val requireInteraction: Boolean
Link copied to clipboard
open val silent: Boolean
Link copied to clipboard
open val sound: String
Link copied to clipboard
open val sticky: Boolean
Link copied to clipboard
open val tag: String
Link copied to clipboard
open val timestamp: Number
Link copied to clipboard
open val title: String
Link copied to clipboard
open val vibrate: Array<out Int>