Package org. w3c. notifications
Kotlin JavaScript wrappers for the Web Notifications API.
Types
Get Notification Options
Link copied to clipboard
Notification
Link copied to clipboard
open external class Notification(title: String, options: NotificationOptions) : EventTarget
Content copied to clipboard
Exposes the JavaScript Notification to Kotlin
Notification Action
Link copied to clipboard
Notification Direction
Link copied to clipboard
Notification Event
Link copied to clipboard
open external class NotificationEvent(type: String, eventInitDict: NotificationEventInit) : ExtendableEvent
Content copied to clipboard
Exposes the JavaScript NotificationEvent to Kotlin
Notification Event Init
Link copied to clipboard
Notification Options
Link copied to clipboard
Notification Permission
Link copied to clipboard
Functions
Get Notification Options
Link copied to clipboard
inline fun GetNotificationOptions(tag: String? = ""): GetNotificationOptions
Content copied to clipboard
Notification Action
Link copied to clipboard
inline fun NotificationAction(action: String?, title: String?, icon: String? = undefined): NotificationAction
Content copied to clipboard
Notification Event Init
Link copied to clipboard
inline fun NotificationEventInit(notification: Notification?, action: String? = "", bubbles: Boolean? = false, cancelable: Boolean? = false, composed: Boolean? = false): NotificationEventInit
Content copied to clipboard
Notification Options
Link copied to clipboard
inline fun NotificationOptions(dir: NotificationDirection? = NotificationDirection.AUTO, lang: String? = "", body: String? = "", tag: String? = "", image: String? = undefined, icon: String? = undefined, badge: String? = undefined, sound: String? = undefined, vibrate: dynamic = undefined, timestamp: Number? = undefined, renotify: Boolean? = false, silent: Boolean? = false, noscreen: Boolean? = false, requireInteraction: Boolean? = false, sticky: Boolean? = false, data: Any? = null, actions: Array<NotificationAction>? = arrayOf()): NotificationOptions
Content copied to clipboard