Package

org.scalajs.dom.experimental

serviceworkers

Permalink

package serviceworkers

Service Workers

See also

Service Workers W3C Working Draft

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. serviceworkers
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Type Members

  1. abstract class Cache extends Object

    Permalink

    See ¶5.4 cache of ServiceWorker whatwg spec.

    See ¶5.4 cache of ServiceWorker whatwg spec.

    Annotations
    @RawJSType() @native()
  2. trait CacheQueryOptions extends Object

    Permalink

    See ¶5.4 cache of ServiceWorker whatwg spec.

    See ¶5.4 cache of ServiceWorker whatwg spec.

    Annotations
    @RawJSType() @native()
  3. trait CacheStorage extends Object

    Permalink

    See ¶5.5 cache of ServiceWorker whatwg spec.

    See ¶5.5 cache of ServiceWorker whatwg spec.

    Annotations
    @RawJSType() @native()
  4. trait CanvasProxy extends Any

    Permalink

    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
    @RawJSType() @native()
  5. trait Client extends Object

    Permalink

    ¶4.2 Client of Service Workers 1 spec.

    ¶4.2 Client of Service Workers 1 spec.

    Annotations
    @RawJSType() @native()
  6. trait ClientQueryOptions extends Object

    Permalink

    ¶4.2 Client of Service Workers 1 spec.

    ¶4.2 Client of Service Workers 1 spec.

    Annotations
    @RawJSType() @native()
  7. sealed trait ClientType extends Any

    Permalink
    Annotations
    @RawJSType() @native()
  8. trait Clients extends Object

    Permalink

    See ¶4.3 clients of ServiceWorker whatwg spec.

    See ¶4.3 clients of ServiceWorker whatwg spec.

    Annotations
    @RawJSType() @native()
  9. class ExtendableEvent extends Event

    Permalink

    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
    @RawJSType() @native()
  10. class ExtendableMessageEvent extends ExtendableEvent

    Permalink

    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
    @RawJSType() @native()
  11. trait ExtendableMessageEventInit extends Object

    Permalink
    Annotations
    @RawJSType() @native()
  12. class FetchEvent extends Event

    Permalink

    See FetchEvent on MDN

    See FetchEvent on MDN

    ¶4.5 FetchEvent on whatwg ServiceWorker spec.

    Annotations
    @RawJSType() @native()
  13. sealed trait FrameType extends Any

    Permalink
    Annotations
    @RawJSType() @native()
  14. trait ServiceWorker extends EventTarget

    Permalink

    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
    @RawJSType() @native()
  15. trait ServiceWorkerContainer extends EventTarget

    Permalink

    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
    @RawJSType() @native()
  16. trait ServiceWorkerGlobalScope extends raw.EventTarget with WorkerGlobalScope

    Permalink

    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
    @RawJSType() @native()
  17. class ServiceWorkerMessageEvent extends Event

    Permalink

    The ServiceWorkerMessageEvent interface of the ServiceWorker API contains information about an event sent to a ServiceWorkerContainer target.

    The ServiceWorkerMessageEvent interface of the ServiceWorker API contains information about an event sent to a ServiceWorkerContainer target. This extends the default message event to allow setting a ServiceWorker object as the source of a message. The event object is accessed via the handler function of a message event, when fired by a message received from a service worker.

    MDN

    Annotations
    @RawJSType() @native()
  18. trait ServiceWorkerMessageEventInit extends Object

    Permalink
    Annotations
    @RawJSType() @native()
  19. trait ServiceWorkerNavigator extends Any

    Permalink
    Annotations
    @RawJSType() @native()
  20. trait ServiceWorkerRegistration extends EventTarget

    Permalink

    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
    @RawJSType() @native()
  21. sealed trait ServiceWorkerState extends Any

    Permalink

    See ¶3.1 ServiceWorker of ServiceWorker whatwg spec.

    See ¶3.1 ServiceWorker of ServiceWorker whatwg spec.

    Annotations
    @RawJSType() @native()
  22. type Transferable = |[raw.Transferable, CanvasProxy]

    Permalink

    ¶2.7.4 Transferable Objects in whatwg html spec.

  23. trait WindowClient extends Object with Client

    Permalink

    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
    @RawJSType() @native()

Value Members

  1. object ClientType

    Permalink
  2. object FrameType

    Permalink

    part of ServiceWorker ¶4.2.2 frameType of serviceWorker spec

  3. object ServiceWorkerGlobalScope extends GlobalScope

    Permalink
    Annotations
    @native()
  4. object ServiceWorkerState

    Permalink
  5. implicit def toServiceWorkerNavigator(n: raw.Navigator): ServiceWorkerNavigator

    Permalink

Inherited from AnyRef

Inherited from Any

Ungrouped