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

jsMain.web.serviceworker.ServiceWorkerRegistration.kt Maven / Gradle / Ivy

// Automatically generated - do not modify!

package web.serviceworker

import js.core.ReadonlyArray
import js.core.Void
import web.events.Event
import web.events.EventHandler
import web.events.EventTarget
import web.notifications.Notification
import web.notifications.NotificationOptions
import web.push.PushManager
import kotlin.js.Promise

sealed external class ServiceWorkerRegistration :
    EventTarget {
    val active: ServiceWorker?
    val installing: ServiceWorker?
    val navigationPreload: NavigationPreloadManager
    var onupdatefound: EventHandler?
    val pushManager: PushManager
    val scope: String
    val updateViaCache: ServiceWorkerUpdateViaCache
    val waiting: ServiceWorker?
    fun getNotifications(filter: GetNotificationOptions = definedExternally): Promise>
    fun showNotification(
        title: String,
        options: NotificationOptions = definedExternally,
    ): Promise

    fun unregister(): Promise
    fun update(): Promise
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy