@Generated(value="org.realityforge.webtack")
@JsType(isNative=true,
namespace="<window>",
name="$wnd")
public final class ServiceWorkerGlobal
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static @JsNullable ExtendableEventHandler |
onactivate
The onactivate property of the ServiceWorkerGlobalScope interface is an event handler fired whenever an activate event occurs (when the service worker activates).
|
static @JsNullable OnErrorEventHandler |
onerror
The onerror property of the WorkerGlobalScope interface represents an EventHandler to be called when the error event occurs and bubbles through the Worker.
|
static @JsNullable FetchEventHandler |
onfetch
The onfetch property of the ServiceWorkerGlobalScope interface is an event handler fired whenever a fetch event occurs (usually when the WindowOrWorkerGlobalScope.fetch() method is called.)
|
static @JsNullable ExtendableEventHandler |
oninstall
The oninstall property of the ServiceWorkerGlobalScope interface is an event handler fired whenever an install event occurs (when the service worker installs).
|
static @JsNullable EventHandler |
onlanguagechange
The onlanguagechange property of the WorkerGlobalScope interface represents an EventHandler to be called when the languagechange event occurs and bubbles through the Worker.
|
static @JsNullable ExtendableMessageEventHandler |
onmessage
The onmessage property of the ServiceWorkerGlobalScope interface is an event handler fired whenever a message event occurs — when incoming messages are received.
|
static @JsNullable MessageEventHandler |
onmessageerror
The onmessageerror event handler of the WindowEventHandlers interface is an EventListener, called whenever an MessageEvent of type messageerror is fired on a window—that is, when it receives a message that cannot be deserialized.
|
static @JsNullable NotificationEventHandler |
onnotificationclick
The ServiceWorkerGlobalScope.onnotificationclick property is an event handler called whenever the notificationclick event is dispatched on the ServiceWorkerGlobalScope object, that is when a user clicks on a displayed notification spawned by ServiceWorkerRegistration.showNotification().
|
static @JsNullable NotificationEventHandler |
onnotificationclose
The ServiceWorkerGlobalScope.onnotificationclose property is an event handler called whenever the notificationclose event is dispatched on the ServiceWorkerGlobalScope object, that is when a user closes a displayed notification spawned by ServiceWorkerRegistration.showNotification().
|
static @JsNullable EventHandler |
onoffline
The onoffline property of the WorkerGlobalScope interface represents an EventHandler to be called when the offline event occurs and bubbles through the Worker.
|
static @JsNullable EventHandler |
ononline
The ononline property of the WorkerGlobalScope interface represents an EventHandler to be called when the online event occurs and bubbles through the Worker.
|
static @JsNullable PushEventHandler |
onpush
The ServiceWorkerGlobalScope.onpush event of the ServiceWorkerGlobalScope interface is fired whenever a push message is received by a service worker via a push server.
|
static @JsNullable PushSubscriptionChangeEventHandler |
onpushsubscriptionchange
The ServiceWorkerGlobalScope.onpushsubscriptionchange event of the ServiceWorkerGlobalScope interface is fired to indicate a change in push subscription that was triggered outside the application's control, e.g.
|
static @JsNullable PromiseRejectionEventHandler |
onrejectionhandled |
static @JsNullable SyncEventHandler |
onsync |
static @JsNullable PromiseRejectionEventHandler |
onunhandledrejection |
| Modifier and Type | Method and Description |
|---|---|
static void |
addActivateListener(ExtendableEventListener callback) |
static void |
addActivateListener(ExtendableEventListener callback,
AddEventListenerOptions options) |
static void |
addActivateListener(ExtendableEventListener callback,
boolean useCapture) |
static void |
addEventListener(java.lang.String type,
EventListener callback)
The EventTarget method addEventListener() sets up a function that will be called whenever the specified event is delivered to the target.
|
static void |
addEventListener(java.lang.String type,
EventListener callback,
AddEventListenerOptions options)
The EventTarget method addEventListener() sets up a function that will be called whenever the specified event is delivered to the target.
|
static void |
addEventListener(java.lang.String type,
EventListener callback,
boolean options)
The EventTarget method addEventListener() sets up a function that will be called whenever the specified event is delivered to the target.
|
static void |
addFetchListener(FetchEventListener callback) |
static void |
addFetchListener(FetchEventListener callback,
AddEventListenerOptions options) |
static void |
addFetchListener(FetchEventListener callback,
boolean useCapture) |
static void |
addInstallListener(ExtendableEventListener callback) |
static void |
addInstallListener(ExtendableEventListener callback,
AddEventListenerOptions options) |
static void |
addInstallListener(ExtendableEventListener callback,
boolean useCapture) |
static void |
addLanguagechangeListener(EventListener callback) |
static void |
addLanguagechangeListener(EventListener callback,
AddEventListenerOptions options) |
static void |
addLanguagechangeListener(EventListener callback,
boolean useCapture) |
static void |
addMessageerrorListener(MessageEventListener callback) |
static void |
addMessageerrorListener(MessageEventListener callback,
AddEventListenerOptions options) |
static void |
addMessageerrorListener(MessageEventListener callback,
boolean useCapture) |
static void |
addMessageListener(ExtendableMessageEventListener callback) |
static void |
addMessageListener(ExtendableMessageEventListener callback,
AddEventListenerOptions options) |
static void |
addMessageListener(ExtendableMessageEventListener callback,
boolean useCapture) |
static void |
addNotificationclickListener(NotificationEventListener callback) |
static void |
addNotificationclickListener(NotificationEventListener callback,
AddEventListenerOptions options) |
static void |
addNotificationclickListener(NotificationEventListener callback,
boolean useCapture) |
static void |
addNotificationcloseListener(NotificationEventListener callback) |
static void |
addNotificationcloseListener(NotificationEventListener callback,
AddEventListenerOptions options) |
static void |
addNotificationcloseListener(NotificationEventListener callback,
boolean useCapture) |
static void |
addOfflineListener(EventListener callback) |
static void |
addOfflineListener(EventListener callback,
AddEventListenerOptions options) |
static void |
addOfflineListener(EventListener callback,
boolean useCapture) |
static void |
addOnlineListener(EventListener callback) |
static void |
addOnlineListener(EventListener callback,
AddEventListenerOptions options) |
static void |
addOnlineListener(EventListener callback,
boolean useCapture) |
static void |
addPushListener(PushEventListener callback) |
static void |
addPushListener(PushEventListener callback,
AddEventListenerOptions options) |
static void |
addPushListener(PushEventListener callback,
boolean useCapture) |
static void |
addPushsubscriptionchangeListener(PushSubscriptionChangeEventListener callback) |
static void |
addPushsubscriptionchangeListener(PushSubscriptionChangeEventListener callback,
AddEventListenerOptions options) |
static void |
addPushsubscriptionchangeListener(PushSubscriptionChangeEventListener callback,
boolean useCapture) |
static void |
addRejectionhandledListener(PromiseRejectionEventListener callback) |
static void |
addRejectionhandledListener(PromiseRejectionEventListener callback,
AddEventListenerOptions options) |
static void |
addRejectionhandledListener(PromiseRejectionEventListener callback,
boolean useCapture) |
static void |
addSyncListener(SyncEventListener callback) |
static void |
addSyncListener(SyncEventListener callback,
AddEventListenerOptions options) |
static void |
addSyncListener(SyncEventListener callback,
boolean useCapture) |
static void |
addUnhandledrejectionListener(PromiseRejectionEventListener callback) |
static void |
addUnhandledrejectionListener(PromiseRejectionEventListener callback,
AddEventListenerOptions options) |
static void |
addUnhandledrejectionListener(PromiseRejectionEventListener callback,
boolean useCapture) |
static @JsNonNull java.lang.String |
atob(java.lang.String data)
The WindowOrWorkerGlobalScope.atob() function decodes a string of data which has been encoded using Base64 encoding.
|
static @JsNonNull java.lang.String |
btoa(java.lang.String data)
The WindowOrWorkerGlobalScope.btoa() method creates a Base64-encoded ASCII string from a binary string (i.e., a String object in which each character in the string is treated as a byte of binary data).
|
static @JsNonNull CacheStorage |
caches()
The caches read-only property of the WindowOrWorkerGlobalScope interface returns the CacheStorage object associated with the current context.
|
static void |
clearInterval()
The clearInterval() method of the WindowOrWorkerGlobalScope mixin cancels a timed, repeating action which was previously established by a call to setInterval().
|
static void |
clearInterval(int handle)
The clearInterval() method of the WindowOrWorkerGlobalScope mixin cancels a timed, repeating action which was previously established by a call to setInterval().
|
static void |
clearTimeout()
The clearTimeout() method of the WindowOrWorkerGlobalScope mixin cancels a timeout previously established by calling setTimeout().
|
static void |
clearTimeout(int handle)
The clearTimeout() method of the WindowOrWorkerGlobalScope mixin cancels a timeout previously established by calling setTimeout().
|
static @JsNonNull Clients |
clients()
The clients read-only property of the ServiceWorkerGlobalScope interface returns the Clients object associated with the service worker.
|
static @JsNonNull Promise<ImageBitmap> |
createImageBitmap(ImageBitmapSource image)
The createImageBitmap() method creates a bitmap from a given source, optionally cropped to contain only a portion of that source.
|
static @JsNonNull Promise<ImageBitmap> |
createImageBitmap(ImageBitmapSource image,
ImageBitmapOptions options)
The createImageBitmap() method creates a bitmap from a given source, optionally cropped to contain only a portion of that source.
|
static @JsNonNull Promise<ImageBitmap> |
createImageBitmap(ImageBitmapSource image,
int sx,
int sy,
int sw,
int sh)
The createImageBitmap() method creates a bitmap from a given source, optionally cropped to contain only a portion of that source.
|
static @JsNonNull Promise<ImageBitmap> |
createImageBitmap(ImageBitmapSource image,
int sx,
int sy,
int sw,
int sh,
ImageBitmapOptions options)
The createImageBitmap() method creates a bitmap from a given source, optionally cropped to contain only a portion of that source.
|
static boolean |
crossOriginIsolated()
The crossOriginIsolated read-only property of the WindowOrWorkerGlobalScope interface returns a boolean value that indicates whether a SharedArrayBuffer can be sent via a Window.postMessage() call.
|
static @JsNonNull Crypto |
crypto() |
static boolean |
dispatchEvent(Event event)
Dispatches an Event at the specified EventTarget, (synchronously) invoking the affected EventListeners in the appropriate order.
|
static @JsNonNull Promise<Response> |
fetch(Request input)
The fetch() method of the WindowOrWorkerGlobalScope mixin starts the process of fetching a resource from the network, returning a promise which is fulfilled once the response is available.
|
static @JsNonNull Promise<Response> |
fetch(RequestInfo input)
The fetch() method of the WindowOrWorkerGlobalScope mixin starts the process of fetching a resource from the network, returning a promise which is fulfilled once the response is available.
|
static @JsNonNull Promise<Response> |
fetch(RequestInfo input,
RequestInit init)
The fetch() method of the WindowOrWorkerGlobalScope mixin starts the process of fetching a resource from the network, returning a promise which is fulfilled once the response is available.
|
static @JsNonNull Promise<Response> |
fetch(Request input,
RequestInit init)
The fetch() method of the WindowOrWorkerGlobalScope mixin starts the process of fetching a resource from the network, returning a promise which is fulfilled once the response is available.
|
static @JsNonNull Promise<Response> |
fetch(java.lang.String input)
The fetch() method of the WindowOrWorkerGlobalScope mixin starts the process of fetching a resource from the network, returning a promise which is fulfilled once the response is available.
|
static @JsNonNull Promise<Response> |
fetch(java.lang.String input,
RequestInit init)
The fetch() method of the WindowOrWorkerGlobalScope mixin starts the process of fetching a resource from the network, returning a promise which is fulfilled once the response is available.
|
static boolean |
hasOwnProperty(java.lang.String prop)
The hasOwnProperty() method returns a boolean indicating whether the object has the specified property as its own property (as opposed to inheriting it).
|
static boolean |
hasOwnProperty(Symbol prop)
The hasOwnProperty() method returns a boolean indicating whether the object has the specified property as its own property (as opposed to inheriting it).
|
static void |
importScripts(java.lang.String... urls)
The importScripts() method of the WorkerGlobalScope interface synchronously imports one or more scripts into the worker's scope.
|
static @JsNonNull IDBFactory |
indexedDB()
The indexedDB read-only property of the WindowOrWorkerGlobalScope mixin provides a mechanism for applications to asynchronously access the capabilities of indexed databases.
|
static boolean |
isIndexedDBSupported() |
static boolean |
isPrototypeOf(JsObject obj)
The isPrototypeOf() method checks if an object exists in another object's prototype chain.
|
static boolean |
isSecureContext()
The isSecureContext read-only property of the WindowOrWorkerGlobalScope interface returns a boolean indicating whether the current context is secure (true) or not (false).
|
static @JsNonNull WorkerLocation |
location()
The location read-only property of the WorkerGlobalScope interface returns the WorkerLocation associated with the worker.
|
static @JsNonNull WorkerNavigator |
navigator()
The navigator read-only property of the WorkerGlobalScope interface returns the WorkerNavigator associated with the worker.
|
static @JsNonNull java.lang.String |
origin()
The origin read-only property of the WindowOrWorkerGlobalScope interface returns the origin of the global scope, serialized as a string.
|
static @JsNonNull Performance |
performance()
The performance read-only property of the WorkerGlobalScope interface returns a Performance object to be used on the worker.
|
static boolean |
propertyIsEnumerable(java.lang.String prop)
The propertyIsEnumerable() method returns a Boolean indicating whether the specified property is enumerable and is the object's own property.
|
static void |
queueMicrotask(VoidFunction callback)
The queueMicrotask() method, which is exposed on the Window or Worker interface, queues a microtask to be executed at a safe time prior to control returning to the browser's event loop.
|
static @JsNonNull ServiceWorkerRegistration |
registration()
The registration read-only property of the ServiceWorkerGlobalScope interface returns a reference to the ServiceWorkerRegistration object, which represents the service worker's registration.
|
static void |
removeActivateListener(ExtendableEventListener callback) |
static void |
removeActivateListener(ExtendableEventListener callback,
boolean useCapture) |
static void |
removeActivateListener(ExtendableEventListener callback,
EventListenerOptions options) |
static void |
removeEventListener(java.lang.String type,
EventListener callback)
The EventTarget.removeEventListener() method removes from the EventTarget an event listener previously registered with EventTarget.addEventListener().
|
static void |
removeEventListener(java.lang.String type,
EventListener callback,
boolean options)
The EventTarget.removeEventListener() method removes from the EventTarget an event listener previously registered with EventTarget.addEventListener().
|
static void |
removeEventListener(java.lang.String type,
EventListener callback,
EventListenerOptions options)
The EventTarget.removeEventListener() method removes from the EventTarget an event listener previously registered with EventTarget.addEventListener().
|
static void |
removeFetchListener(FetchEventListener callback) |
static void |
removeFetchListener(FetchEventListener callback,
boolean useCapture) |
static void |
removeFetchListener(FetchEventListener callback,
EventListenerOptions options) |
static void |
removeInstallListener(ExtendableEventListener callback) |
static void |
removeInstallListener(ExtendableEventListener callback,
boolean useCapture) |
static void |
removeInstallListener(ExtendableEventListener callback,
EventListenerOptions options) |
static void |
removeLanguagechangeListener(EventListener callback) |
static void |
removeLanguagechangeListener(EventListener callback,
boolean useCapture) |
static void |
removeLanguagechangeListener(EventListener callback,
EventListenerOptions options) |
static void |
removeMessageerrorListener(MessageEventListener callback) |
static void |
removeMessageerrorListener(MessageEventListener callback,
boolean useCapture) |
static void |
removeMessageerrorListener(MessageEventListener callback,
EventListenerOptions options) |
static void |
removeMessageListener(ExtendableMessageEventListener callback) |
static void |
removeMessageListener(ExtendableMessageEventListener callback,
boolean useCapture) |
static void |
removeMessageListener(ExtendableMessageEventListener callback,
EventListenerOptions options) |
static void |
removeNotificationclickListener(NotificationEventListener callback) |
static void |
removeNotificationclickListener(NotificationEventListener callback,
boolean useCapture) |
static void |
removeNotificationclickListener(NotificationEventListener callback,
EventListenerOptions options) |
static void |
removeNotificationcloseListener(NotificationEventListener callback) |
static void |
removeNotificationcloseListener(NotificationEventListener callback,
boolean useCapture) |
static void |
removeNotificationcloseListener(NotificationEventListener callback,
EventListenerOptions options) |
static void |
removeOfflineListener(EventListener callback) |
static void |
removeOfflineListener(EventListener callback,
boolean useCapture) |
static void |
removeOfflineListener(EventListener callback,
EventListenerOptions options) |
static void |
removeOnlineListener(EventListener callback) |
static void |
removeOnlineListener(EventListener callback,
boolean useCapture) |
static void |
removeOnlineListener(EventListener callback,
EventListenerOptions options) |
static void |
removePushListener(PushEventListener callback) |
static void |
removePushListener(PushEventListener callback,
boolean useCapture) |
static void |
removePushListener(PushEventListener callback,
EventListenerOptions options) |
static void |
removePushsubscriptionchangeListener(PushSubscriptionChangeEventListener callback) |
static void |
removePushsubscriptionchangeListener(PushSubscriptionChangeEventListener callback,
boolean useCapture) |
static void |
removePushsubscriptionchangeListener(PushSubscriptionChangeEventListener callback,
EventListenerOptions options) |
static void |
removeRejectionhandledListener(PromiseRejectionEventListener callback) |
static void |
removeRejectionhandledListener(PromiseRejectionEventListener callback,
boolean useCapture) |
static void |
removeRejectionhandledListener(PromiseRejectionEventListener callback,
EventListenerOptions options) |
static void |
removeSyncListener(SyncEventListener callback) |
static void |
removeSyncListener(SyncEventListener callback,
boolean useCapture) |
static void |
removeSyncListener(SyncEventListener callback,
EventListenerOptions options) |
static void |
removeUnhandledrejectionListener(PromiseRejectionEventListener callback) |
static void |
removeUnhandledrejectionListener(PromiseRejectionEventListener callback,
boolean useCapture) |
static void |
removeUnhandledrejectionListener(PromiseRejectionEventListener callback,
EventListenerOptions options) |
static void |
reportError(java.lang.Object e) |
static @JsNonNull WorkerGlobalScope |
self()
The self read-only property of the WorkerGlobalScope interface returns a reference to the WorkerGlobalScope itself.
|
static @JsNonNull ServiceWorker |
serviceWorker() |
static int |
setInterval(TimerHandler handler)
The setInterval() method, offered on the Window and Worker interfaces, repeatedly calls a function or executes a code snippet, with a fixed time delay between each call.
|
static int |
setInterval(TimerHandler handler,
int timeout)
The setInterval() method, offered on the Window and Worker interfaces, repeatedly calls a function or executes a code snippet, with a fixed time delay between each call.
|
static int |
setTimeout(TimerHandler handler)
The setTimeout() method of the WindowOrWorkerGlobalScope mixin (and successor to Window.setTimeout()) sets a timer which executes a function or specified piece of code once the timer expires.
|
static int |
setTimeout(TimerHandler handler,
int timeout)
The setTimeout() method of the WindowOrWorkerGlobalScope mixin (and successor to Window.setTimeout()) sets a timer which executes a function or specified piece of code once the timer expires.
|
static @JsNonNull Promise<java.lang.Void> |
skipWaiting()
The ServiceWorkerGlobalScope.skipWaiting() method of the ServiceWorkerGlobalScope forces the waiting service worker to become the active service worker.
|
static @JsNullable jsinterop.base.Any |
structuredClone(java.lang.Object value) |
static @JsNullable jsinterop.base.Any |
structuredClone(java.lang.Object value,
StructuredSerializeOptions options) |
static @JsNonNull java.lang.String |
toString_()
The toString() method returns a string representing the object.
|
static @JsNullable jsinterop.base.Any |
valueOf_()
The valueOf() method returns the primitive value of the specified object.
|
public static @JsNullable ExtendableEventHandler onactivate
public static @JsNullable FetchEventHandler onfetch
public static @JsNullable ExtendableEventHandler oninstall
public static @JsNullable ExtendableMessageEventHandler onmessage
public static @JsNullable MessageEventHandler onmessageerror
public static @JsNullable NotificationEventHandler onnotificationclick
public static @JsNullable NotificationEventHandler onnotificationclose
public static @JsNullable PushEventHandler onpush
public static @JsNullable PushSubscriptionChangeEventHandler onpushsubscriptionchange
public static @JsNullable SyncEventHandler onsync
public static @JsNullable OnErrorEventHandler onerror
public static @JsNullable EventHandler onlanguagechange
public static @JsNullable EventHandler onoffline
public static @JsNullable EventHandler ononline
public static @JsNullable PromiseRejectionEventHandler onrejectionhandled
public static @JsNullable PromiseRejectionEventHandler onunhandledrejection
@JsProperty(name="clients") public static @JsNonNull Clients clients()
@JsProperty(name="registration") public static @JsNonNull ServiceWorkerRegistration registration()
@JsProperty(name="serviceWorker") public static @JsNonNull ServiceWorker serviceWorker()
public static @JsNonNull Promise<java.lang.Void> skipWaiting()
@JsOverlay
public static void addActivateListener(@Nonnull
ExtendableEventListener callback,
@Nonnull
AddEventListenerOptions options)
@JsOverlay
public static void addActivateListener(@Nonnull
ExtendableEventListener callback,
boolean useCapture)
@JsOverlay
public static void addActivateListener(@Nonnull
ExtendableEventListener callback)
@JsOverlay
public static void removeActivateListener(@Nonnull
ExtendableEventListener callback,
@Nonnull
EventListenerOptions options)
@JsOverlay
public static void removeActivateListener(@Nonnull
ExtendableEventListener callback,
boolean useCapture)
@JsOverlay
public static void removeActivateListener(@Nonnull
ExtendableEventListener callback)
@JsOverlay
public static void addInstallListener(@Nonnull
ExtendableEventListener callback,
@Nonnull
AddEventListenerOptions options)
@JsOverlay
public static void addInstallListener(@Nonnull
ExtendableEventListener callback,
boolean useCapture)
@JsOverlay
public static void addInstallListener(@Nonnull
ExtendableEventListener callback)
@JsOverlay
public static void removeInstallListener(@Nonnull
ExtendableEventListener callback,
@Nonnull
EventListenerOptions options)
@JsOverlay
public static void removeInstallListener(@Nonnull
ExtendableEventListener callback,
boolean useCapture)
@JsOverlay
public static void removeInstallListener(@Nonnull
ExtendableEventListener callback)
@JsOverlay
public static void addMessageListener(@Nonnull
ExtendableMessageEventListener callback,
@Nonnull
AddEventListenerOptions options)
@JsOverlay
public static void addMessageListener(@Nonnull
ExtendableMessageEventListener callback,
boolean useCapture)
@JsOverlay
public static void addMessageListener(@Nonnull
ExtendableMessageEventListener callback)
@JsOverlay
public static void removeMessageListener(@Nonnull
ExtendableMessageEventListener callback,
@Nonnull
EventListenerOptions options)
@JsOverlay
public static void removeMessageListener(@Nonnull
ExtendableMessageEventListener callback,
boolean useCapture)
@JsOverlay
public static void removeMessageListener(@Nonnull
ExtendableMessageEventListener callback)
@JsOverlay
public static void addFetchListener(@Nonnull
FetchEventListener callback,
@Nonnull
AddEventListenerOptions options)
@JsOverlay
public static void addFetchListener(@Nonnull
FetchEventListener callback,
boolean useCapture)
@JsOverlay
public static void addFetchListener(@Nonnull
FetchEventListener callback)
@JsOverlay
public static void removeFetchListener(@Nonnull
FetchEventListener callback,
@Nonnull
EventListenerOptions options)
@JsOverlay
public static void removeFetchListener(@Nonnull
FetchEventListener callback,
boolean useCapture)
@JsOverlay
public static void removeFetchListener(@Nonnull
FetchEventListener callback)
@JsOverlay
public static void addNotificationclickListener(@Nonnull
NotificationEventListener callback,
@Nonnull
AddEventListenerOptions options)
@JsOverlay
public static void addNotificationclickListener(@Nonnull
NotificationEventListener callback,
boolean useCapture)
@JsOverlay
public static void addNotificationclickListener(@Nonnull
NotificationEventListener callback)
@JsOverlay
public static void removeNotificationclickListener(@Nonnull
NotificationEventListener callback,
@Nonnull
EventListenerOptions options)
@JsOverlay
public static void removeNotificationclickListener(@Nonnull
NotificationEventListener callback,
boolean useCapture)
@JsOverlay
public static void removeNotificationclickListener(@Nonnull
NotificationEventListener callback)
@JsOverlay
public static void addPushListener(@Nonnull
PushEventListener callback,
@Nonnull
AddEventListenerOptions options)
@JsOverlay
public static void addPushListener(@Nonnull
PushEventListener callback,
boolean useCapture)
@JsOverlay
public static void addPushListener(@Nonnull
PushEventListener callback)
@JsOverlay
public static void removePushListener(@Nonnull
PushEventListener callback,
@Nonnull
EventListenerOptions options)
@JsOverlay
public static void removePushListener(@Nonnull
PushEventListener callback,
boolean useCapture)
@JsOverlay
public static void removePushListener(@Nonnull
PushEventListener callback)
@JsOverlay
public static void addPushsubscriptionchangeListener(@Nonnull
PushSubscriptionChangeEventListener callback,
@Nonnull
AddEventListenerOptions options)
@JsOverlay
public static void addPushsubscriptionchangeListener(@Nonnull
PushSubscriptionChangeEventListener callback,
boolean useCapture)
@JsOverlay
public static void addPushsubscriptionchangeListener(@Nonnull
PushSubscriptionChangeEventListener callback)
@JsOverlay
public static void removePushsubscriptionchangeListener(@Nonnull
PushSubscriptionChangeEventListener callback,
@Nonnull
EventListenerOptions options)
@JsOverlay
public static void removePushsubscriptionchangeListener(@Nonnull
PushSubscriptionChangeEventListener callback,
boolean useCapture)
@JsOverlay
public static void removePushsubscriptionchangeListener(@Nonnull
PushSubscriptionChangeEventListener callback)
@JsOverlay
public static void addMessageerrorListener(@Nonnull
MessageEventListener callback,
@Nonnull
AddEventListenerOptions options)
@JsOverlay
public static void addMessageerrorListener(@Nonnull
MessageEventListener callback,
boolean useCapture)
@JsOverlay
public static void addMessageerrorListener(@Nonnull
MessageEventListener callback)
@JsOverlay
public static void removeMessageerrorListener(@Nonnull
MessageEventListener callback,
@Nonnull
EventListenerOptions options)
@JsOverlay
public static void removeMessageerrorListener(@Nonnull
MessageEventListener callback,
boolean useCapture)
@JsOverlay
public static void removeMessageerrorListener(@Nonnull
MessageEventListener callback)
@JsOverlay
public static void addSyncListener(@Nonnull
SyncEventListener callback,
@Nonnull
AddEventListenerOptions options)
@JsOverlay
public static void addSyncListener(@Nonnull
SyncEventListener callback,
boolean useCapture)
@JsOverlay
public static void addSyncListener(@Nonnull
SyncEventListener callback)
@JsOverlay
public static void removeSyncListener(@Nonnull
SyncEventListener callback,
@Nonnull
EventListenerOptions options)
@JsOverlay
public static void removeSyncListener(@Nonnull
SyncEventListener callback,
boolean useCapture)
@JsOverlay
public static void removeSyncListener(@Nonnull
SyncEventListener callback)
@JsOverlay
public static void addNotificationcloseListener(@Nonnull
NotificationEventListener callback,
@Nonnull
AddEventListenerOptions options)
@JsOverlay
public static void addNotificationcloseListener(@Nonnull
NotificationEventListener callback,
boolean useCapture)
@JsOverlay
public static void addNotificationcloseListener(@Nonnull
NotificationEventListener callback)
@JsOverlay
public static void removeNotificationcloseListener(@Nonnull
NotificationEventListener callback,
@Nonnull
EventListenerOptions options)
@JsOverlay
public static void removeNotificationcloseListener(@Nonnull
NotificationEventListener callback,
boolean useCapture)
@JsOverlay
public static void removeNotificationcloseListener(@Nonnull
NotificationEventListener callback)
@JsProperty(name="caches") public static @JsNonNull CacheStorage caches()
@JsProperty(name="crossOriginIsolated") public static boolean crossOriginIsolated()
@JsProperty(name="crypto") public static @JsNonNull Crypto crypto()
@JsOverlay public static boolean isIndexedDBSupported()
@JsProperty(name="indexedDB") public static @JsNonNull IDBFactory indexedDB()
@JsProperty(name="isSecureContext") public static boolean isSecureContext()
@JsProperty(name="location") public static @JsNonNull WorkerLocation location()
@JsProperty(name="navigator") public static @JsNonNull WorkerNavigator navigator()
@JsProperty(name="origin") public static @JsNonNull java.lang.String origin()
@JsProperty(name="performance") public static @JsNonNull Performance performance()
@JsProperty(name="self") public static @JsNonNull WorkerGlobalScope self()
public static void importScripts(@Nonnull
java.lang.String... urls)
public static @JsNonNull java.lang.String atob(@Nonnull
java.lang.String data)
public static @JsNonNull java.lang.String btoa(@Nonnull
java.lang.String data)
public static void clearInterval(int handle)
public static void clearInterval()
public static void clearTimeout(int handle)
public static void clearTimeout()
public static @JsNonNull Promise<ImageBitmap> createImageBitmap(@Nonnull ImageBitmapSource image, @Nonnull ImageBitmapOptions options)
public static @JsNonNull Promise<ImageBitmap> createImageBitmap(@Nonnull ImageBitmapSource image)
public static @JsNonNull Promise<ImageBitmap> createImageBitmap(@Nonnull ImageBitmapSource image, int sx, int sy, int sw, int sh, @Nonnull ImageBitmapOptions options)
public static @JsNonNull Promise<ImageBitmap> createImageBitmap(@Nonnull ImageBitmapSource image, int sx, int sy, int sw, int sh)
public static void queueMicrotask(@Nonnull
VoidFunction callback)
public static void reportError(@Nullable
java.lang.Object e)
public static @JsNullable jsinterop.base.Any structuredClone(@Nullable
java.lang.Object value,
@Nonnull
StructuredSerializeOptions options)
public static @JsNullable jsinterop.base.Any structuredClone(@Nullable
java.lang.Object value)
public static @JsNonNull Promise<Response> fetch(@Nonnull RequestInfo input, @Nonnull RequestInit init)
public static @JsNonNull Promise<Response> fetch(@Nonnull Request input, @Nonnull RequestInit init)
public static @JsNonNull Promise<Response> fetch(@Nonnull java.lang.String input, @Nonnull RequestInit init)
public static @JsNonNull Promise<Response> fetch(@Nonnull RequestInfo input)
public static @JsNonNull Promise<Response> fetch(@Nonnull Request input)
public static @JsNonNull Promise<Response> fetch(@Nonnull java.lang.String input)
public static int setInterval(@Nonnull
TimerHandler handler,
int timeout)
public static int setInterval(@Nonnull
TimerHandler handler)
public static int setTimeout(@Nonnull
TimerHandler handler,
int timeout)
public static int setTimeout(@Nonnull
TimerHandler handler)
@JsOverlay
public static void addUnhandledrejectionListener(@Nonnull
PromiseRejectionEventListener callback,
@Nonnull
AddEventListenerOptions options)
@JsOverlay
public static void addUnhandledrejectionListener(@Nonnull
PromiseRejectionEventListener callback,
boolean useCapture)
@JsOverlay
public static void addUnhandledrejectionListener(@Nonnull
PromiseRejectionEventListener callback)
@JsOverlay
public static void removeUnhandledrejectionListener(@Nonnull
PromiseRejectionEventListener callback,
@Nonnull
EventListenerOptions options)
@JsOverlay
public static void removeUnhandledrejectionListener(@Nonnull
PromiseRejectionEventListener callback,
boolean useCapture)
@JsOverlay
public static void removeUnhandledrejectionListener(@Nonnull
PromiseRejectionEventListener callback)
@JsOverlay
public static void addRejectionhandledListener(@Nonnull
PromiseRejectionEventListener callback,
@Nonnull
AddEventListenerOptions options)
@JsOverlay
public static void addRejectionhandledListener(@Nonnull
PromiseRejectionEventListener callback,
boolean useCapture)
@JsOverlay
public static void addRejectionhandledListener(@Nonnull
PromiseRejectionEventListener callback)
@JsOverlay
public static void removeRejectionhandledListener(@Nonnull
PromiseRejectionEventListener callback,
@Nonnull
EventListenerOptions options)
@JsOverlay
public static void removeRejectionhandledListener(@Nonnull
PromiseRejectionEventListener callback,
boolean useCapture)
@JsOverlay
public static void removeRejectionhandledListener(@Nonnull
PromiseRejectionEventListener callback)
@JsOverlay
public static void addLanguagechangeListener(@Nonnull
EventListener callback,
@Nonnull
AddEventListenerOptions options)
@JsOverlay
public static void addLanguagechangeListener(@Nonnull
EventListener callback,
boolean useCapture)
@JsOverlay
public static void addLanguagechangeListener(@Nonnull
EventListener callback)
@JsOverlay
public static void removeLanguagechangeListener(@Nonnull
EventListener callback,
@Nonnull
EventListenerOptions options)
@JsOverlay
public static void removeLanguagechangeListener(@Nonnull
EventListener callback,
boolean useCapture)
@JsOverlay
public static void removeLanguagechangeListener(@Nonnull
EventListener callback)
@JsOverlay
public static void addOfflineListener(@Nonnull
EventListener callback,
@Nonnull
AddEventListenerOptions options)
@JsOverlay
public static void addOfflineListener(@Nonnull
EventListener callback,
boolean useCapture)
@JsOverlay
public static void addOfflineListener(@Nonnull
EventListener callback)
@JsOverlay
public static void removeOfflineListener(@Nonnull
EventListener callback,
@Nonnull
EventListenerOptions options)
@JsOverlay
public static void removeOfflineListener(@Nonnull
EventListener callback,
boolean useCapture)
@JsOverlay
public static void removeOfflineListener(@Nonnull
EventListener callback)
@JsOverlay
public static void addOnlineListener(@Nonnull
EventListener callback,
@Nonnull
AddEventListenerOptions options)
@JsOverlay
public static void addOnlineListener(@Nonnull
EventListener callback,
boolean useCapture)
@JsOverlay
public static void addOnlineListener(@Nonnull
EventListener callback)
@JsOverlay
public static void removeOnlineListener(@Nonnull
EventListener callback,
@Nonnull
EventListenerOptions options)
@JsOverlay
public static void removeOnlineListener(@Nonnull
EventListener callback,
boolean useCapture)
@JsOverlay
public static void removeOnlineListener(@Nonnull
EventListener callback)
public static void addEventListener(@Nonnull
java.lang.String type,
@Nullable
EventListener callback,
@Nonnull
AddEventListenerOptions options)
public static void addEventListener(@Nonnull
java.lang.String type,
@Nullable
EventListener callback,
boolean options)
public static void addEventListener(@Nonnull
java.lang.String type,
@Nullable
EventListener callback)
public static boolean dispatchEvent(@Nonnull
Event event)
public static void removeEventListener(@Nonnull
java.lang.String type,
@Nullable
EventListener callback,
@Nonnull
EventListenerOptions options)
public static void removeEventListener(@Nonnull
java.lang.String type,
@Nullable
EventListener callback,
boolean options)
public static void removeEventListener(@Nonnull
java.lang.String type,
@Nullable
EventListener callback)
public static boolean hasOwnProperty(@Nonnull
Symbol prop)
public static boolean hasOwnProperty(@Nonnull
java.lang.String prop)
public static boolean propertyIsEnumerable(@Nonnull
java.lang.String prop)
public static boolean isPrototypeOf(@Nonnull
JsObject obj)
@JsMethod(name="valueOf") public static @JsNullable jsinterop.base.Any valueOf_()
@JsMethod(name="toString") public static @JsNonNull java.lang.String toString_()