package serviceworkers
- Alphabetic
- By Inheritance
- serviceworkers
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
abstract
class
Cache extends Object
See ¶5.4 cache of ServiceWorker whatwg spec.
See ¶5.4 cache of ServiceWorker whatwg spec.
- Annotations
- @JSType() @native() @JSGlobal()
-
trait
CacheQueryOptions extends Object
See ¶5.4 cache of ServiceWorker whatwg spec.
See ¶5.4 cache of ServiceWorker whatwg spec.
- Annotations
- @JSType() @native()
-
trait
CacheStorage extends Object
See ¶5.5 cache of ServiceWorker whatwg spec.
See ¶5.5 cache of ServiceWorker whatwg spec.
- Annotations
- @JSType() @native()
-
trait
CanvasProxy extends Any
see ¶4.12.4.1 Proxying canvases to workers in whatwg html spec.
see ¶4.12.4.1 Proxying canvases to workers in whatwg html spec.
- Annotations
- @JSType() @native()
-
trait
Client extends Object
¶4.2 Client of Service Workers 1 spec.
¶4.2 Client of Service Workers 1 spec.
- Annotations
- @JSType() @native()
-
trait
ClientQueryOptions extends Object
¶4.2 Client of Service Workers 1 spec.
¶4.2 Client of Service Workers 1 spec.
- Annotations
- @JSType() @native()
-
sealed
trait
ClientType extends Any
- Annotations
- @JSType() @native()
-
trait
Clients extends Object
See ¶4.3 clients of ServiceWorker whatwg spec.
See ¶4.3 clients of ServiceWorker whatwg spec.
- Annotations
- @JSType() @native()
-
class
ExtendableEvent extends Event
See ¶4.4 ExtendableEvent of whatwg ServiceWorker spec.
See ¶4.4 ExtendableEvent of whatwg ServiceWorker spec.
An ExtendableEvent object has an associated extend lifetime promises (an array of promises). It is initially set to null.
- Annotations
- @JSType() @native() @JSGlobal()
-
trait
ExtendableEventInit extends Object with EventInit
- Annotations
- @JSType()
-
class
ExtendableMessageEvent extends ExtendableEvent
Service workers define the extendable message event that extends the message event defined in HTML to allow extending the lifetime of the event.
Service workers define the extendable message event that extends the message event defined in HTML to allow extending the lifetime of the event.
MDN
- Annotations
- @JSType() @native() @JSGlobal()
-
trait
ExtendableMessageEventInit extends Object with ExtendableEventInit
- Annotations
- @JSType()
-
class
FetchEvent extends Event
See FetchEvent on MDN
See FetchEvent on MDN
¶4.5 FetchEvent on whatwg ServiceWorker spec.
- Annotations
- @JSType() @native() @JSGlobal()
-
trait
FetchEventInit extends Object with EventInit
- Annotations
- @JSType()
-
sealed
trait
FrameType extends Any
- Annotations
- @JSType() @native()
-
trait
GetNotificationOptions extends Object
An object containing options to filter the notifications returned.
An object containing options to filter the notifications returned.
MDN
- Annotations
- @JSType()
-
trait
ServiceWorker extends EventTarget
The ServiceWorker interface of the ServiceWorker API provides a reference to a service worker.
The ServiceWorker interface of the ServiceWorker API provides a reference to a service worker. Multiple browsing contexts (e.g. pages, workers, etc.) can be associated with the same service worker, each through a unique ServiceWorker object.
MDN
- Annotations
- @JSType() @native()
-
trait
ServiceWorkerContainer extends EventTarget
The ServiceWorkerContainer interface of the ServiceWorker API exposes the ServiceWorkerContainer.
The ServiceWorkerContainer interface of the ServiceWorker API exposes the ServiceWorkerContainer. register(scriptURL, scope[, base]) method used to register service workers, and the ServiceWorkerContainer. controller property used to determine whether or not the current page is actively controlled.
MDN
- Annotations
- @JSType() @native()
-
trait
ServiceWorkerGlobalScope extends raw.EventTarget with WorkerGlobalScope
The ServiceWorkerGlobalScope interface of the ServiceWorker API represents the global execution context of a service worker.
The ServiceWorkerGlobalScope interface of the ServiceWorker API represents the global execution context of a service worker.
Developers should keep in mind that the ServiceWorker.state is not persisted across the termination/restart cycle, so each event handler should assume it's being invoked with a bare, default global state.
Once successfully registered, a service worker can and will be terminated when idle to conserve memory and processor power. An active service worker is automatically restarted to respond to events, such as ServiceWorkerGlobalScope.onfetch or ServiceWorkerGlobalScope.onmessage.
Additionally, synchronous requests are not allowed from within a service worker — only asynchronous requests, like those initiated via the fetch() method, can be used.
MDN
- Annotations
- @JSType() @native()
-
trait
ServiceWorkerMessageEventInit extends Object with EventInit
- Annotations
- @JSType()
-
trait
ServiceWorkerNavigator extends Any
- Annotations
- @JSType() @native()
-
trait
ServiceWorkerRegistration extends EventTarget
The ServiceWorkerRegistion interface of the ServiceWorker API represents the service worker registration.
The ServiceWorkerRegistion interface of the ServiceWorker API represents the service worker registration. You register a service worker to control one or more pages that share the same origin.
MDN
- Annotations
- @JSType() @native()
-
sealed
trait
ServiceWorkerState extends Any
See ¶3.1 ServiceWorker of ServiceWorker whatwg spec.
See ¶3.1 ServiceWorker of ServiceWorker whatwg spec.
- Annotations
- @JSType() @native()
-
type
Transferable = |[raw.Transferable, CanvasProxy]
¶2.7.4 Transferable Objects in whatwg html spec.
-
trait
WindowClient extends Object with Client
The WindowClient interface of the ServiceWorker API represents the scope of a service worker client that is a document in a browser context, controlled by an active worker.
The WindowClient interface of the ServiceWorker API represents the scope of a service worker client that is a document in a browser context, controlled by an active worker. The service worker client independently selects and uses a service worker for its own loading and sub-resources.
MDN
- Annotations
- @JSType() @native()
Value Members
- implicit def toServiceWorkerNavigator(n: raw.Navigator): ServiceWorkerNavigator
- object ClientType
-
object
FrameType
part of ServiceWorker ¶4.2.2 frameType of serviceWorker spec
-
object
ServiceWorkerGlobalScope extends Object
- Annotations
- @native() @JSGlobalScope()
- object ServiceWorkerState