public class Worker extends EventTarget
Objs.Constructor<T extends Objs>, Objs.Property<T>
Modifier and Type | Field and Description |
---|---|
Objs.Property<Function.A1<? super Event,? extends Object>> |
onerror |
Objs.Property<Function.A1<? super MessageEvent,? extends Object>> |
onmessage |
Modifier | Constructor and Description |
---|---|
protected |
Worker(Objs.Constructor<?> c,
Object js) |
Modifier and Type | Method and Description |
---|---|
static Worker |
$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) |
Function.A1<? super Event,? extends Object> |
onerror() |
Function.A1<? super MessageEvent,? extends Object> |
onmessage() |
void |
postMessage(Object message) |
void |
postMessage(Object message,
Object ports) |
void |
terminate() |
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
public Objs.Property<Function.A1<? super Event,? extends Object>> onerror
protected Worker(Objs.Constructor<?> c, Object js)
public Function.A1<? super MessageEvent,? extends Object> onmessage()
public Function.A1<? super Event,? extends Object> onerror()
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 postMessage(Object message)
public void terminate()
Copyright © 2018. All rights reserved.