MessageEvent
Constructors
<init>
Exposes the JavaScript MessageEvent to Kotlin
MessageEvent(
type: String,
eventInitDict: MessageEventInit = definedExternally)
Properties
data
open val data: Any?
lastEventId
open val lastEventId: String
origin
open val origin: String
ports
open val ports: Array<out MessagePort>
source
open val source: UnionMessagePortOrWindowProxy?
Functions
initMessageEvent
fun initMessageEvent(
type: String,
bubbles: Boolean,
cancelable: Boolean,
data: Any?,
origin: String,
lastEventId: String,
source: UnionMessagePortOrWindowProxy?,
ports: Array<MessagePort>)
Companion Object Properties
AT_TARGET
val AT_TARGET: Short
BUBBLING_PHASE
val BUBBLING_PHASE: Short
CAPTURING_PHASE
val CAPTURING_PHASE: Short
NONE
val NONE: Short