ServiceWorkerRegistration
Constructors
<init>
Exposes the JavaScript ServiceWorkerRegistration to Kotlin
ServiceWorkerRegistration()
Properties
active
open val active: ServiceWorker?
APISpace
open val APISpace: dynamic
installing
open val installing: ServiceWorker?
onupdatefound
open var onupdatefound: ((Event) -> dynamic)?
scope
open val scope: String
waiting
open val waiting: ServiceWorker?
Functions
getNotifications
fun getNotifications(
filter: GetNotificationOptions = definedExternally
): Promise<Array<Notification>>
methodName
fun methodName(): Promise<dynamic>
showNotification
fun showNotification(
title: String,
options: NotificationOptions = definedExternally
): Promise<Unit>
unregister
fun unregister(): Promise<Boolean>