public class MessagePort extends EventTarget
Objs.Constructor<T extends Objs>, Objs.Property<T>
Modifier and Type | Field and Description |
---|---|
Objs.Property<Function.A1<? super MessageEvent,? extends Object>> |
onmessage |
Modifier | Constructor and Description |
---|---|
protected |
MessagePort(Objs.Constructor<?> c,
Object js) |
Modifier and Type | Method and Description |
---|---|
static MessagePort |
$as(Object obj) |
void |
addEventListener(String type,
EventListener listener) |
void |
addEventListener(String type,
EventListener listener,
Boolean useCapture) |
void |
addEventListener(String type,
EventListenerObject listener) |
void |
addEventListener(String type,
EventListenerObject listener,
Boolean useCapture) |
void |
addEventListener(Void type,
Function.A1<? super MessageEvent,? extends Object> listener) |
void |
addEventListener(Void type,
Function.A1<? super MessageEvent,? extends Object> listener,
Boolean useCapture) |
void |
close() |
Function.A1<? super MessageEvent,? extends Object> |
onmessage() |
void |
postMessage() |
void |
postMessage(Object message) |
void |
postMessage(Object message,
Object ports) |
void |
start() |
dispatchEvent, removeEventListener, removeEventListener, removeEventListener, removeEventListener
$as, $cast, $delete, $get, $js, $set, create, create, defineProperties, defineProperty, freeze, getOwnPropertyDescriptor, getOwnPropertyNames, getPrototypeOf, hasOwnProperty, isExtensible, isFrozen, isPrototypeOf, isSealed, keys, newObject, newObject, preventExtensions, propertyIsEnumerable, seal, toLocaleString, toString, valueOf
public Objs.Property<Function.A1<? super MessageEvent,? extends Object>> onmessage
protected MessagePort(Objs.Constructor<?> c, Object js)
public static MessagePort $as(Object obj)
public Function.A1<? super MessageEvent,? extends Object> onmessage()
public void addEventListener(String type, EventListener listener, Boolean useCapture)
addEventListener
in class EventTarget
public void addEventListener(String type, EventListenerObject listener, Boolean useCapture)
addEventListener
in class EventTarget
public void addEventListener(String type, EventListener listener)
addEventListener
in class EventTarget
public void addEventListener(String type, EventListenerObject listener)
addEventListener
in class EventTarget
public void addEventListener(Void type, Function.A1<? super MessageEvent,? extends Object> listener, Boolean useCapture)
public void addEventListener(Void type, Function.A1<? super MessageEvent,? extends Object> listener)
public void close()
public void postMessage()
public void postMessage(Object message)
public void start()
Copyright © 2018. All rights reserved.