@Generated(value="org.realityforge.webtack")
@JsType(isNative=true,
namespace="<global>",
name="DedicatedWorkerGlobalScope")
public class DedicatedWorkerGlobalScope
extends WorkerGlobalScope
| Modifier and Type | Field and Description |
|---|---|
@JsNullable MessageEventHandler |
onmessage
The onmessage property of the DedicatedWorkerGlobalScope interface represents an EventHandler to be called when the message event occurs and bubbles through the Worker — i.e.
|
@JsNullable MessageEventHandler |
onmessageerror
The onmessageerror event handler of the DedicatedWorkerGlobalScope interface is an EventListener, called whenever an MessageEvent of type messageerror is fired on the worker—that is, when it receives a message that cannot be deserialized.
|
onerror, onlanguagechange, onoffline, ononline, onrejectionhandled, onunhandledrejection| Modifier | Constructor and Description |
|---|---|
protected |
DedicatedWorkerGlobalScope() |
| Modifier and Type | Method and Description |
|---|---|
void |
addMessageerrorListener(MessageEventListener callback) |
void |
addMessageerrorListener(MessageEventListener callback,
AddEventListenerOptions options) |
void |
addMessageerrorListener(MessageEventListener callback,
boolean useCapture) |
void |
addMessageListener(MessageEventListener callback) |
void |
addMessageListener(MessageEventListener callback,
AddEventListenerOptions options) |
void |
addMessageListener(MessageEventListener callback,
boolean useCapture) |
void |
cancelAnimationFrame(int handle) |
void |
close()
The close() method of the DedicatedWorkerGlobalScope interface discards any tasks queued in the DedicatedWorkerGlobalScope's event loop, effectively closing this particular scope.
|
java.lang.String |
name()
The name read-only property of the DedicatedWorkerGlobalScope interface returns the name that the Worker was (optionally) given when it was created.
|
void |
postMessage(java.lang.Object message)
The postMessage() method of the DedicatedWorkerGlobalScope interface sends a message to the main thread that spawned it.
|
void |
postMessage(java.lang.Object message,
JsArray<Transferable> transfer)
The postMessage() method of the DedicatedWorkerGlobalScope interface sends a message to the main thread that spawned it.
|
void |
postMessage(java.lang.Object message,
StructuredSerializeOptions options)
The postMessage() method of the DedicatedWorkerGlobalScope interface sends a message to the main thread that spawned it.
|
void |
postMessage(java.lang.Object message,
Transferable[] transfer)
The postMessage() method of the DedicatedWorkerGlobalScope interface sends a message to the main thread that spawned it.
|
void |
removeMessageerrorListener(MessageEventListener callback) |
void |
removeMessageerrorListener(MessageEventListener callback,
boolean useCapture) |
void |
removeMessageerrorListener(MessageEventListener callback,
EventListenerOptions options) |
void |
removeMessageListener(MessageEventListener callback) |
void |
removeMessageListener(MessageEventListener callback,
boolean useCapture) |
void |
removeMessageListener(MessageEventListener callback,
EventListenerOptions options) |
int |
requestAnimationFrame(FrameRequestCallback callback) |
addLanguagechangeListener, addLanguagechangeListener, addLanguagechangeListener, addOfflineListener, addOfflineListener, addOfflineListener, addOnlineListener, addOnlineListener, addOnlineListener, addRejectionhandledListener, addRejectionhandledListener, addRejectionhandledListener, addUnhandledrejectionListener, addUnhandledrejectionListener, addUnhandledrejectionListener, atob, btoa, caches, clearInterval, clearInterval, clearTimeout, clearTimeout, createImageBitmap, createImageBitmap, createImageBitmap, createImageBitmap, crossOriginIsolated, crypto, fetch, fetch, fetch, fetch, fetch, fetch, importScripts, indexedDB, isIndexedDBSupported, isSecureContext, location, navigator, origin, performance, queueMicrotask, removeLanguagechangeListener, removeLanguagechangeListener, removeLanguagechangeListener, removeOfflineListener, removeOfflineListener, removeOfflineListener, removeOnlineListener, removeOnlineListener, removeOnlineListener, removeRejectionhandledListener, removeRejectionhandledListener, removeRejectionhandledListener, removeUnhandledrejectionListener, removeUnhandledrejectionListener, removeUnhandledrejectionListener, reportError, self, setInterval, setInterval, setTimeout, setTimeout, structuredClone, structuredCloneaddEventListener, addEventListener, addEventListener, dispatchEvent, removeEventListener, removeEventListener, removeEventListenerassign, create, create, defineProperties, defineProperty, defineProperty, entries, freeze, fromEntries, getOwnPropertyDescriptor, getOwnPropertyDescriptor, getOwnPropertyDescriptors, getOwnPropertyNames, getOwnPropertySymbols, getPrototypeOf, hasOwnProperty, hasOwnProperty, is, isExtensible, isFrozen, isPrototypeOf, isSealed, keys, preventExtensions, propertyIsEnumerable, seal, setPrototypeOf, toString_, valueOf_, valuespublic @JsNullable MessageEventHandler onmessage
public @JsNullable MessageEventHandler onmessageerror
@JsProperty(name="name") @Nonnull public java.lang.String name()
public void close()
public void postMessage(@Nullable
java.lang.Object message,
@Nonnull
JsArray<Transferable> transfer)
public void postMessage(@Nullable
java.lang.Object message,
@Nonnull
Transferable[] transfer)
public void postMessage(@Nullable
java.lang.Object message,
@Nonnull
StructuredSerializeOptions options)
public void postMessage(@Nullable
java.lang.Object message)
public void cancelAnimationFrame(int handle)
public int requestAnimationFrame(@Nonnull
FrameRequestCallback callback)
@JsOverlay
public final void addMessageListener(@Nonnull
MessageEventListener callback,
@Nonnull
AddEventListenerOptions options)
@JsOverlay
public final void addMessageListener(@Nonnull
MessageEventListener callback,
boolean useCapture)
@JsOverlay
public final void addMessageListener(@Nonnull
MessageEventListener callback)
@JsOverlay
public final void removeMessageListener(@Nonnull
MessageEventListener callback,
@Nonnull
EventListenerOptions options)
@JsOverlay
public final void removeMessageListener(@Nonnull
MessageEventListener callback,
boolean useCapture)
@JsOverlay
public final void removeMessageListener(@Nonnull
MessageEventListener callback)
@JsOverlay
public final void addMessageerrorListener(@Nonnull
MessageEventListener callback,
@Nonnull
AddEventListenerOptions options)
@JsOverlay
public final void addMessageerrorListener(@Nonnull
MessageEventListener callback,
boolean useCapture)
@JsOverlay
public final void addMessageerrorListener(@Nonnull
MessageEventListener callback)
@JsOverlay
public final void removeMessageerrorListener(@Nonnull
MessageEventListener callback,
@Nonnull
EventListenerOptions options)
@JsOverlay
public final void removeMessageerrorListener(@Nonnull
MessageEventListener callback,
boolean useCapture)
@JsOverlay
public final void removeMessageerrorListener(@Nonnull
MessageEventListener callback)