ServiceWorkerGlobalScope

abstract external class ServiceWorkerGlobalScope : 
    WorkerGlobalScope
(source)

Platform and version requirements: JS

Exposes the JavaScript ServiceWorkerGlobalScope to Kotlin

Constructors

<init>

ServiceWorkerGlobalScope()

Exposes the JavaScript ServiceWorkerGlobalScope to Kotlin

Properties

clients

open val clients: Clients

onactivate

open var onactivate: (Event) -> dynamic

onfetch

open var onfetch: (Event) -> dynamic

onforeignfetch

open var onforeignfetch: (Event) -> dynamic

onfunctionalevent

open var onfunctionalevent: (Event) -> dynamic

oninstall

open var oninstall: (Event) -> dynamic

onmessage

open var onmessage: (Event) -> dynamic

onnotificationclick

open var onnotificationclick: (Event) -> dynamic

onnotificationclose

open var onnotificationclose: (Event) -> dynamic

registration

open val registration: ServiceWorkerRegistration

Inherited Properties

location

open val location: WorkerLocation

navigator

open val navigator: WorkerNavigator

onerror

open var onerror: (dynamic, String, Int, Int, Any?) -> dynamic

onlanguagechange

open var onlanguagechange: (Event) -> dynamic

onoffline

open var onoffline: (Event) -> dynamic

ononline

open var ononline: (Event) -> dynamic

onrejectionhandled

open var onrejectionhandled: (Event) -> dynamic

onunhandledrejection

open var onunhandledrejection: (Event) -> dynamic

self

open val self: WorkerGlobalScope

Functions

skipWaiting

fun skipWaiting(): Promise<Unit>

Inherited Functions

importScripts

fun importScripts(vararg urls: String)