Interface ServiceWorkerGlobalScope
- All Superinterfaces:
EventTarget
,WorkerGlobalScope
@JsType(isNative=true,
namespace="<global>")
public interface ServiceWorkerGlobalScope
extends WorkerGlobalScope
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interface
static interface
static interface
static interface
static interface
static interface
static interface
Nested classes/interfaces inherited from interface elemental2.dom.EventTarget
EventTarget.AddEventListenerListenerFn, EventTarget.AddEventListenerOptionsUnionType, EventTarget.RemoveEventListenerListenerFn, EventTarget.RemoveEventListenerOptionsUnionType
Nested classes/interfaces inherited from interface elemental2.dom.WorkerGlobalScope
WorkerGlobalScope.FetchInputUnionType, WorkerGlobalScope.OnerrorFn, WorkerGlobalScope.OnofflineFn, WorkerGlobalScope.OnonlineFn, WorkerGlobalScope.PostMessageTransferOrOptionsUnionType
-
Method Summary
Modifier and TypeMethodDescriptiongetScope()
void
setCaches
(CacheStorage caches) void
setClients
(ServiceWorkerClients clients) void
setConsole
(Console console) void
void
setOnactivate
(ServiceWorkerGlobalScope.OnactivateFn onactivate) void
setOnbeforeevicted
(ServiceWorkerGlobalScope.OnbeforeevictedFn onbeforeevicted) void
setOnevicted
(ServiceWorkerGlobalScope.OnevictedFn onevicted) void
void
setOninstall
(ServiceWorkerGlobalScope.OninstallFn oninstall) void
setOnmessage
(ServiceWorkerGlobalScope.OnmessageFn onmessage) void
setRegistration
(ServiceWorkerRegistration registration) void
void
setScriptCache
(Cache scriptCache) elemental2.promise.Promise
<Void> Methods inherited from interface elemental2.dom.EventTarget
addEventListener, addEventListener, addEventListener, addEventListener, dispatchEvent, removeEventListener, removeEventListener, removeEventListener, removeEventListener
Methods inherited from interface elemental2.dom.WorkerGlobalScope
close, fetch, fetch, fetch, fetch, fetch, fetch, fetch, fetch, getLocation, getNavigator, getOnerror, getOnoffline, getOnonline, getOrigin, getPerformance, getSelf, postMessage, postMessage, postMessage, postMessage, postMessage, setLocation, setNavigator, setOnerror, setOnoffline, setOnonline, setPerformance, setSelf
-
Method Details
-
getCaches
-
getClients
-
getConsole
-
getNotification
-
getOnactivate
-
getOnbeforeevicted
-
getOnevicted
-
getOnfetch
-
getOninstall
-
getOnmessage
-
getRegistration
-
getScope
-
getScriptCache
-
setCaches
-
setClients
-
setConsole
-
setNotification
@JsProperty(name="Notification") void setNotification(ServiceWorkerGlobalScope.NotificationFieldType Notification) -
setOnactivate
-
setOnbeforeevicted
-
setOnevicted
-
setOnfetch
-
setOninstall
-
setOnmessage
-
setRegistration
-
setScope
-
setScriptCache
-
skipWaiting
elemental2.promise.Promise<Void> skipWaiting()
-