toggle menu
kilua-project
0.0.15
common
switch theme
search in API
kilua-dom
/
web.workers
/
ServiceWorkerRegistration
Service
Worker
Registration
abstract
class
ServiceWorkerRegistration
:
EventTarget
,
JsAny
Exposes the JavaScript
ServiceWorkerRegistration
to Kotlin
Members
Constructors
Service
Worker
Registration
Link copied to clipboard
constructor
(
)
Properties
active
Link copied to clipboard
open
val
active
:
ServiceWorker
?
APISpace
Link copied to clipboard
open
val
APISpace
:
JsAny
?
installing
Link copied to clipboard
open
val
installing
:
ServiceWorker
?
onupdatefound
Link copied to clipboard
open
var
onupdatefound
:
(
Event
)
->
Unit
?
scope
Link copied to clipboard
open
val
scope
:
String
waiting
Link copied to clipboard
open
val
waiting
:
ServiceWorker
?
Functions
add
Event
Listener
Link copied to clipboard
fun
addEventListener
(
type
:
String
,
callback
:
(
Event
)
->
Unit
?
)
fun
addEventListener
(
type
:
String
,
callback
:
EventListener
?
)
fun
addEventListener
(
type
:
String
,
callback
:
(
Event
)
->
Unit
?
,
options
:
Boolean
)
fun
addEventListener
(
type
:
String
,
callback
:
(
Event
)
->
Unit
?
,
options
:
AddEventListenerOptions
)
fun
addEventListener
(
type
:
String
,
callback
:
EventListener
?
,
options
:
Boolean
)
fun
addEventListener
(
type
:
String
,
callback
:
EventListener
?
,
options
:
AddEventListenerOptions
)
dispatch
Event
Link copied to clipboard
fun
dispatchEvent
(
event
:
Event
)
:
Boolean
get
Notifications
Link copied to clipboard
fun
getNotifications
(
filter
:
GetNotificationOptions
)
:
Promise
<
*
>
method
Name
Link copied to clipboard
fun
methodName
(
)
:
Promise
<
*
>
remove
Event
Listener
Link copied to clipboard
fun
removeEventListener
(
type
:
String
,
callback
:
(
Event
)
->
Unit
?
)
fun
removeEventListener
(
type
:
String
,
callback
:
EventListener
?
)
fun
removeEventListener
(
type
:
String
,
callback
:
(
Event
)
->
Unit
?
,
options
:
Boolean
)
fun
removeEventListener
(
type
:
String
,
callback
:
(
Event
)
->
Unit
?
,
options
:
EventListenerOptions
)
fun
removeEventListener
(
type
:
String
,
callback
:
EventListener
?
,
options
:
Boolean
)
fun
removeEventListener
(
type
:
String
,
callback
:
EventListener
?
,
options
:
EventListenerOptions
)
show
Notification
Link copied to clipboard
fun
showNotification
(
title
:
String
,
options
:
NotificationOptions
)
:
Promise
<
Nothing
?
>
unregister
Link copied to clipboard
fun
unregister
(
)
:
Promise
<
*
>
update
Link copied to clipboard
fun
update
(
)
:
Promise
<
Nothing
?
>