toggle menu
kilua-project
0.0.17
common
switch theme
search in API
kilua-dom
/
web.dom
/
BroadcastChannel
Broadcast
Channel
open
class
BroadcastChannel
(
name
:
String
)
:
EventTarget
,
JsAny
Exposes the JavaScript
BroadcastChannel
to Kotlin
Members
Constructors
Broadcast
Channel
Link copied to clipboard
constructor
(
name
:
String
)
Properties
name
Link copied to clipboard
open
val
name
:
String
onmessage
Link copied to clipboard
var
onmessage
:
(
MessageEvent
)
->
Unit
?
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
)
close
Link copied to clipboard
fun
close
(
)
dispatch
Event
Link copied to clipboard
fun
dispatchEvent
(
event
:
Event
)
:
Boolean
post
Message
Link copied to clipboard
fun
postMessage
(
message
:
JsAny
?
)
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
)