Package-level declarations

Kotlin JavaScript wrappers for the Web Notifications API.

Types

Link copied to clipboard
external interface GetNotificationOptions
Link copied to clipboard
open external class Notification(title: String, options: NotificationOptions = definedExternally) : EventTarget

Exposes the JavaScript Notification to Kotlin

Link copied to clipboard
external interface NotificationAction
Link copied to clipboard
external interface NotificationDirection
Link copied to clipboard
open external class NotificationEvent(type: String, eventInitDict: NotificationEventInit) : ExtendableEvent

Exposes the JavaScript NotificationEvent to Kotlin

Link copied to clipboard
Link copied to clipboard
external interface NotificationOptions
Link copied to clipboard
external interface NotificationPermission

Functions

Link copied to clipboard
Link copied to clipboard
inline fun NotificationAction(    action: String?,     title: String?,     icon: String? = undefined): NotificationAction
Link copied to clipboard
inline fun NotificationEventInit(    notification: Notification?,     action: String? = "",     bubbles: Boolean? = false,     cancelable: Boolean? = false,     composed: Boolean? = false): NotificationEventInit
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

Properties