All Downloads are FREE. Search and download functionalities are using the official Maven repository.

main.web.notifications.Notification.kt Maven / Gradle / Ivy

// Automatically generated - do not modify!

package web.notifications

import web.events.Event
import web.events.EventHandler
import web.events.EventTarget
import kotlin.js.Promise

external class Notification(
    title: String,
    options: NotificationOptions = definedExternally,
) : EventTarget {
    val body: String
    val data: Any?
    val dir: NotificationDirection
    val icon: String
    val lang: String
    var onclick: EventHandler?
    var onclose: EventHandler?
    var onerror: EventHandler?
    var onshow: EventHandler?
    val tag: String
    val title: String
    fun close()

    companion object {
        val permission: NotificationPermission
        fun requestPermission(deprecatedCallback: NotificationPermissionCallback = definedExternally): Promise
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy