@Generated(value="org.realityforge.webtack")
@JsType(isNative=true,
namespace="<global>",
name="SharedWorkerGlobalScope")
public class SharedWorkerGlobalScope
extends WorkerGlobalScope
| Modifier and Type | Field and Description |
|---|---|
@JsNullable MessageEventHandler |
onconnect
The onconnect property of the SharedWorkerGlobalScope interface is an event handler representing the code to be called when the connect event is raised — that is, when a MessagePort connection is opened between the associated SharedWorker and the main thread.
|
onerror, onlanguagechange, onoffline, ononline, onrejectionhandled, onunhandledrejection| Modifier | Constructor and Description |
|---|---|
protected |
SharedWorkerGlobalScope() |
| Modifier and Type | Method and Description |
|---|---|
void |
addConnectListener(MessageEventListener callback) |
void |
addConnectListener(MessageEventListener callback,
AddEventListenerOptions options) |
void |
addConnectListener(MessageEventListener callback,
boolean useCapture) |
void |
close()
The close() method of the SharedWorkerGlobalScope interface discards any tasks queued in the SharedWorkerGlobalScope's event loop, effectively closing this particular scope.
|
java.lang.String |
name()
The name read-only property of the SharedWorkerGlobalScope interface returns the name that the SharedWorker was (optionally) given when it was created.
|
void |
removeConnectListener(MessageEventListener callback) |
void |
removeConnectListener(MessageEventListener callback,
boolean useCapture) |
void |
removeConnectListener(MessageEventListener callback,
EventListenerOptions options) |
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 onconnect
@JsProperty(name="name") @Nonnull public java.lang.String name()
public void close()
@JsOverlay
public final void addConnectListener(@Nonnull
MessageEventListener callback,
@Nonnull
AddEventListenerOptions options)
@JsOverlay
public final void addConnectListener(@Nonnull
MessageEventListener callback,
boolean useCapture)
@JsOverlay
public final void addConnectListener(@Nonnull
MessageEventListener callback)
@JsOverlay
public final void removeConnectListener(@Nonnull
MessageEventListener callback,
@Nonnull
EventListenerOptions options)
@JsOverlay
public final void removeConnectListener(@Nonnull
MessageEventListener callback,
boolean useCapture)
@JsOverlay
public final void removeConnectListener(@Nonnull
MessageEventListener callback)