MessageEvent

JS
1.1
open class MessageEvent : Event

Exposes the JavaScript MessageEvent to Kotlin

Constructors

JS
1.1

<init>

Exposes the JavaScript MessageEvent to Kotlin

MessageEvent(
    type: String,
    eventInitDict: MessageEventInit = definedExternally)

Properties

JS
1.1

data

open val data: Any?
JS
1.1

lastEventId

open val lastEventId: String
JS
1.1

origin

open val origin: String
JS
1.1

ports

open val ports: Array<out MessagePort>
JS
1.1

source

Functions

JS
1.1

initMessageEvent

fun initMessageEvent(
    type: String,
    bubbles: Boolean,
    cancelable: Boolean,
    data: Any?,
    origin: String,
    lastEventId: String,
    source: UnionMessagePortOrWindowProxy?,
    ports: Array<MessagePort>)

Companion Object Properties

JS
1.1

AT_TARGET

val AT_TARGET: Short
JS
1.1

BUBBLING_PHASE

val BUBBLING_PHASE: Short
JS
1.1

CAPTURING_PHASE

val CAPTURING_PHASE: Short
JS
1.1

NONE

val NONE: Short