ServiceWorkerRegistration

JS
1.1
abstract class ServiceWorkerRegistration : EventTarget

Exposes the JavaScript ServiceWorkerRegistration to Kotlin

Constructors

JS
1.1

<init>

Exposes the JavaScript ServiceWorkerRegistration to Kotlin

ServiceWorkerRegistration()

Properties

JS
1.1

active

open val active: ServiceWorker?
JS
1.1

APISpace

open val APISpace: dynamic
JS
1.1

installing

open val installing: ServiceWorker?
JS
1.1

onupdatefound

open var onupdatefound: (Event) -> dynamic
JS
1.1

scope

open val scope: String
JS
1.1

waiting

open val waiting: ServiceWorker?

Functions

JS
1.1

getNotifications

fun getNotifications(
    filter: GetNotificationOptions = definedExternally
): Promise<dynamic>
JS
1.1

methodName

fun methodName(): Promise<dynamic>
JS
1.1

showNotification

fun showNotification(
    title: String,
    options: NotificationOptions = definedExternally
): Promise<Unit>
JS
1.1

unregister

fun unregister(): Promise<Boolean>
JS
1.1

update

fun update(): Promise<Unit>