toggle menu
kilua-project
0.0.15
common
switch theme
search in API
kilua-dom
/
web.workers
/
ServiceWorkerContainer
Service
Worker
Container
abstract
class
ServiceWorkerContainer
:
EventTarget
,
JsAny
Exposes the JavaScript
ServiceWorkerContainer
to Kotlin
Members
Constructors
Service
Worker
Container
Link copied to clipboard
constructor
(
)
Properties
controller
Link copied to clipboard
open
val
controller
:
ServiceWorker
?
oncontrollerchange
Link copied to clipboard
open
var
oncontrollerchange
:
(
Event
)
->
Unit
?
onmessage
Link copied to clipboard
open
var
onmessage
:
(
MessageEvent
)
->
Unit
?
ready
Link copied to clipboard
open
val
ready
:
Promise
<
*
>
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
Registration
Link copied to clipboard
fun
getRegistration
(
clientURL
:
String
)
:
Promise
<
*
>
get
Registrations
Link copied to clipboard
fun
getRegistrations
(
)
:
Promise
<
*
>
register
Link copied to clipboard
fun
register
(
scriptURL
:
String
,
options
:
RegistrationOptions
)
:
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
)
start
Messages
Link copied to clipboard
fun
startMessages
(
)