kilua-project
Toggle table of contents
0.0.19
common
Platform filter
common
Switch theme
Search in API
kilua-project
kilua-dom
/
web.dom
/
SharedWorker
Shared
Worker
open
class
SharedWorker
(
scriptURL
:
String
,
name
:
String
,
options
:
WorkerOptions
)
:
EventTarget
,
AbstractWorker
,
JsAny
(
source
)
Exposes the JavaScript
SharedWorker
to Kotlin
Members
Constructors
Shared
Worker
Link copied to clipboard
constructor
(
scriptURL
:
String
,
name
:
String
,
options
:
WorkerOptions
)
Properties
onerror
Link copied to clipboard
open
override
var
onerror
:
(
Event
)
->
Unit
?
port
Link copied to clipboard
open
val
port
:
MessagePort
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
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
)