MessageEvent

open external class MessageEvent : Event (source)

Platform and version requirements: JS

Exposes the JavaScript MessageEvent to Kotlin

Constructors

<init>

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

Exposes the JavaScript MessageEvent to Kotlin

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: UnionMessagePortOrWindow?

Inherited Properties

bubbles

open val bubbles: Boolean

cancelable

open val cancelable: Boolean

composed

open val composed: Boolean

currentTarget

open val currentTarget: EventTarget?

defaultPrevented

open val defaultPrevented: Boolean

eventPhase

open val eventPhase: Short

isTrusted

open val isTrusted: Boolean

target

open val target: EventTarget?

timeStamp

open val timeStamp: Number

type

open val type: String

Functions

initMessageEvent

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

Inherited Functions

composedPath

fun composedPath(): Array<EventTarget>

initEvent

fun initEvent(
    type: String,
    bubbles: Boolean,
    cancelable: Boolean)

preventDefault

fun preventDefault()

stopImmediatePropagation

fun stopImmediatePropagation()

stopPropagation

fun stopPropagation()