ServiceWorkerContainer

JS
1.1
abstract class ServiceWorkerContainer : EventTarget
(source)

Exposes the JavaScript ServiceWorkerContainer to Kotlin

Constructors

JS
1.1

<init>

Exposes the JavaScript ServiceWorkerContainer to Kotlin

ServiceWorkerContainer()

Properties

JS
1.1

controller

open val controller: ServiceWorker?
JS
1.1

oncontrollerchange

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

onmessage

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

ready

Functions

JS
1.1

getRegistration

fun getRegistration(
    clientURL: String = definedExternally
): Promise<Any?>
JS
1.1

getRegistrations

fun getRegistrations(): Promise<Array<ServiceWorkerRegistration>>
JS
1.1

register

fun register(
    scriptURL: String,
    options: RegistrationOptions = definedExternally
): Promise<ServiceWorkerRegistration>
JS
1.1

startMessages

fun startMessages()