ServiceWorkerContainer

abstract external class ServiceWorkerContainer : EventTarget

Exposes the JavaScript ServiceWorkerContainer to Kotlin

Constructors

Link copied to clipboard

Functions

Link copied to clipboard
fun addEventListener(    type: String,     callback: (Event) -> Unit?,     options: dynamic = definedExternally)
fun addEventListener(    type: String,     callback: EventListener?,     options: dynamic = definedExternally)
Link copied to clipboard
fun dispatchEvent(event: Event): Boolean
Link copied to clipboard
fun getRegistration(clientURL: String = definedExternally): Promise<Any?>
Link copied to clipboard
fun register(scriptURL: String, options: RegistrationOptions = definedExternally): Promise<ServiceWorkerRegistration>
Link copied to clipboard
fun removeEventListener(    type: String,     callback: (Event) -> Unit?,     options: dynamic = definedExternally)
fun removeEventListener(    type: String,     callback: EventListener?,     options: dynamic = definedExternally)
Link copied to clipboard

Properties

Link copied to clipboard
Link copied to clipboard
open var oncontrollerchange: (Event) -> dynamic?
Link copied to clipboard
open var onmessage: (MessageEvent) -> dynamic?
Link copied to clipboard