Service Worker Registration
Exposes the JavaScript ServiceWorkerRegistration to Kotlin
Constructors
ServiceWorkerRegistration
Link copied to clipboard
Functions
add Event Listener
Link copied to clipboard
fun addEventListener(type: String, callback: (Event) -> Unit?, options: dynamic = definedExternally)
Content copied to clipboard
fun addEventListener(type: String, callback: EventListener?, options: dynamic = definedExternally)
Content copied to clipboard
dispatch Event
Link copied to clipboard
get Notifications
Link copied to clipboard
fun getNotifications(filter: GetNotificationOptions = definedExternally): Promise<Array<Notification>>
Content copied to clipboard
method Name
Link copied to clipboard
remove Event Listener
Link copied to clipboard
fun removeEventListener(type: String, callback: (Event) -> Unit?, options: dynamic = definedExternally)
Content copied to clipboard
fun removeEventListener(type: String, callback: EventListener?, options: dynamic = definedExternally)
Content copied to clipboard
show Notification
Link copied to clipboard
fun showNotification(title: String, options: NotificationOptions = definedExternally): Promise<Unit>
Content copied to clipboard
unregister
Link copied to clipboard
Properties
active
Link copied to clipboard
installing
Link copied to clipboard
onupdatefound
Link copied to clipboard
waiting
Link copied to clipboard