ServiceWorkerGlobalScope

JS
1.1
abstract class ServiceWorkerGlobalScope : WorkerGlobalScope

Exposes the JavaScript ServiceWorkerGlobalScope to Kotlin

Constructors

JS
1.1

<init>

Exposes the JavaScript ServiceWorkerGlobalScope to Kotlin

ServiceWorkerGlobalScope()

Properties

JS
1.1

clients

open val clients: Clients
JS
1.1

onactivate

open var onactivate: ((Event) -> dynamic)?
JS
1.1

onfetch

open var onfetch: ((FetchEvent) -> dynamic)?
JS
1.1

onforeignfetch

open var onforeignfetch: ((Event) -> dynamic)?
JS
1.1

onfunctionalevent

open var onfunctionalevent: ((Event) -> dynamic)?
JS
1.1

oninstall

open var oninstall: ((Event) -> dynamic)?
JS
1.1

onmessage

open var onmessage: ((MessageEvent) -> dynamic)?
JS
1.1

onnotificationclick

open var onnotificationclick: ((NotificationEvent) -> dynamic)?
JS
1.1

onnotificationclose

open var onnotificationclose: ((NotificationEvent) -> dynamic)?
JS
1.1

registration

open val registration: ServiceWorkerRegistration

Functions

JS
1.1

skipWaiting

fun skipWaiting(): Promise<Unit>