Notification
open external class Notification(title: String, options: NotificationOptions) : EventTarget
Content copied to clipboard
Exposes the JavaScript Notification to Kotlin
Constructors
Notification
Link copied to clipboard
fun Notification(title: String, options: NotificationOptions = definedExternally)
Content copied to clipboard
Types
Functions
add Event Listener
Link copied to clipboard
fun addEventListener(type: String, callback: (Event) -> Unit?, options: dynamic = definedExternally)
Content copied to clipboard
fun addEventListener(type: String, callback: EventListener?, options: dynamic = definedExternally)
Content copied to clipboard
dispatch Event
Link copied to clipboard
remove Event Listener
Link copied to clipboard
fun removeEventListener(type: String, callback: (Event) -> Unit?, options: dynamic = definedExternally)
Content copied to clipboard
fun removeEventListener(type: String, callback: EventListener?, options: dynamic = definedExternally)
Content copied to clipboard
Properties
actions
Link copied to clipboard
dir
Link copied to clipboard
onclick
Link copied to clipboard
requireInteraction
Link copied to clipboard