The ServiceWorkerRegistration interface of the ServiceWorker represents the service worker registration. You register a service to control one or more pages that share the same origin.
The ServiceWorkerRegistration interface of the ServiceWorker represents the service worker registration. You register a service to control one or more pages that share the same origin.
(active this)
Property.
The active property of the web.ServiceWorkerRegistration
interface
a service worker whose web.ServiceWorker.state
is activating
activated. This property is initially set to null.
sw = ServiceWorker.active
See also: https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerRegistration/active
Property. The active property of the `web.ServiceWorkerRegistration` interface a service worker whose `web.ServiceWorker.state` is activating activated. This property is initially set to null. `sw = ServiceWorker.active` See also: `https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerRegistration/active`
(get-notifications this & args)
Method.
The getNotifications() method of the web.ServiceWorkerRegistration
returns a list of the notifications in the order that they were
from the current origin via the current service worker registration.
can have many active but differently-scoped service worker registrations.
created by one service worker on the same origin will not be
to other active services workers on that same origin.
ServiceWorkerRegistration.getNotifications(options) .then(function(NotificationsList) { ... });
See also: https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerRegistration/getNotifications
Method. The getNotifications() method of the `web.ServiceWorkerRegistration` returns a list of the notifications in the order that they were from the current origin via the current service worker registration. can have many active but differently-scoped service worker registrations. created by one service worker on the same origin will not be to other active services workers on that same origin. `ServiceWorkerRegistration.getNotifications(options) .then(function(NotificationsList) { ... });` See also: `https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerRegistration/getNotifications`
(installing this)
Property.
The installing property of the web.ServiceWorkerRegistration
returns a service worker whose web.ServiceWorker.state
is installing.
property is initially set to null.
sw = ServiceWorker.installing
See also: https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerRegistration/installing
Property. The installing property of the `web.ServiceWorkerRegistration` returns a service worker whose `web.ServiceWorker.state` is installing. property is initially set to null. `sw = ServiceWorker.installing` See also: `https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerRegistration/installing`
(navigation-preload this)
Property.
The navigationPreload read-only property of the web.ServiceWorkerRegistration
returns the web.NavigationPreloadManager
associated with the
service worker registration.
var navigationPreloadManager = serviceWorkerRegistration.navigationPreload
See also: https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerRegistration/navigationPreload
Property. The navigationPreload read-only property of the `web.ServiceWorkerRegistration` returns the `web.NavigationPreloadManager` associated with the service worker registration. `var navigationPreloadManager = serviceWorkerRegistration.navigationPreload` See also: `https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerRegistration/navigationPreload`
(onupdatefound this)
Property.
The onupdatefound property of the web.ServiceWorkerRegistration
is an EventListener property called whenever an event of type
is fired; it is fired any time the ServiceWorkerRegistration.installing
acquires a new service worker.
ServiceWorkerRegistration.onupdatefound = function() { ... };
See also: https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerRegistration/onupdatefound
Property. The onupdatefound property of the `web.ServiceWorkerRegistration` is an EventListener property called whenever an event of type is fired; it is fired any time the ServiceWorkerRegistration.installing acquires a new service worker. `ServiceWorkerRegistration.onupdatefound = function() { ... };` See also: `https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerRegistration/onupdatefound`
(periodic-sync this)
Property.
The periodicSync read-only property of the web.ServiceWorkerRegistration
returns a reference to the web.PeriodicSyncManager
interface,
manages periodic background synchronization processes.
myPeriodicSync = ServiceWorker.periodicSync
See also: https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerRegistration/periodicSync
Property. The periodicSync read-only property of the `web.ServiceWorkerRegistration` returns a reference to the `web.PeriodicSyncManager` interface, manages periodic background synchronization processes. `myPeriodicSync = ServiceWorker.periodicSync` See also: `https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerRegistration/periodicSync`
(push-manager this)
Property.
The pushManager property of the web.ServiceWorkerRegistration
returns a reference to the web.PushManager
interface for managing
subscriptions; this includes support for subscribing, getting
active subscription, and accessing push permission status.
myPushManager = ServiceWorker.pushManager
See also: https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerRegistration/pushManager
Property. The pushManager property of the `web.ServiceWorkerRegistration` returns a reference to the `web.PushManager` interface for managing subscriptions; this includes support for subscribing, getting active subscription, and accessing push permission status. `myPushManager = ServiceWorker.pushManager` See also: `https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerRegistration/pushManager`
(scope this)
Property.
The scope read-only property of the web.ServiceWorkerRegistration
returns a unique identifier for a service worker registration.
service worker must be on the same origin as the document that
the ServiceWorker.
swScope = ServiceWorkerRegistration.scope;
See also: https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerRegistration/scope
Property. The scope read-only property of the `web.ServiceWorkerRegistration` returns a unique identifier for a service worker registration. service worker must be on the same origin as the document that the ServiceWorker. `swScope = ServiceWorkerRegistration.scope;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerRegistration/scope`
(set-active! this val)
Property.
The active property of the web.ServiceWorkerRegistration
interface
a service worker whose web.ServiceWorker.state
is activating
activated. This property is initially set to null.
sw = ServiceWorker.active
See also: https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerRegistration/active
Property. The active property of the `web.ServiceWorkerRegistration` interface a service worker whose `web.ServiceWorker.state` is activating activated. This property is initially set to null. `sw = ServiceWorker.active` See also: `https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerRegistration/active`
(set-installing! this val)
Property.
The installing property of the web.ServiceWorkerRegistration
returns a service worker whose web.ServiceWorker.state
is installing.
property is initially set to null.
sw = ServiceWorker.installing
See also: https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerRegistration/installing
Property. The installing property of the `web.ServiceWorkerRegistration` returns a service worker whose `web.ServiceWorker.state` is installing. property is initially set to null. `sw = ServiceWorker.installing` See also: `https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerRegistration/installing`
(set-navigation-preload! this val)
Property.
The navigationPreload read-only property of the web.ServiceWorkerRegistration
returns the web.NavigationPreloadManager
associated with the
service worker registration.
var navigationPreloadManager = serviceWorkerRegistration.navigationPreload
See also: https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerRegistration/navigationPreload
Property. The navigationPreload read-only property of the `web.ServiceWorkerRegistration` returns the `web.NavigationPreloadManager` associated with the service worker registration. `var navigationPreloadManager = serviceWorkerRegistration.navigationPreload` See also: `https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerRegistration/navigationPreload`
(set-onupdatefound! this val)
Property.
The onupdatefound property of the web.ServiceWorkerRegistration
is an EventListener property called whenever an event of type
is fired; it is fired any time the ServiceWorkerRegistration.installing
acquires a new service worker.
ServiceWorkerRegistration.onupdatefound = function() { ... };
See also: https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerRegistration/onupdatefound
Property. The onupdatefound property of the `web.ServiceWorkerRegistration` is an EventListener property called whenever an event of type is fired; it is fired any time the ServiceWorkerRegistration.installing acquires a new service worker. `ServiceWorkerRegistration.onupdatefound = function() { ... };` See also: `https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerRegistration/onupdatefound`
(set-periodic-sync! this val)
Property.
The periodicSync read-only property of the web.ServiceWorkerRegistration
returns a reference to the web.PeriodicSyncManager
interface,
manages periodic background synchronization processes.
myPeriodicSync = ServiceWorker.periodicSync
See also: https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerRegistration/periodicSync
Property. The periodicSync read-only property of the `web.ServiceWorkerRegistration` returns a reference to the `web.PeriodicSyncManager` interface, manages periodic background synchronization processes. `myPeriodicSync = ServiceWorker.periodicSync` See also: `https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerRegistration/periodicSync`
(set-push-manager! this val)
Property.
The pushManager property of the web.ServiceWorkerRegistration
returns a reference to the web.PushManager
interface for managing
subscriptions; this includes support for subscribing, getting
active subscription, and accessing push permission status.
myPushManager = ServiceWorker.pushManager
See also: https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerRegistration/pushManager
Property. The pushManager property of the `web.ServiceWorkerRegistration` returns a reference to the `web.PushManager` interface for managing subscriptions; this includes support for subscribing, getting active subscription, and accessing push permission status. `myPushManager = ServiceWorker.pushManager` See also: `https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerRegistration/pushManager`
(set-scope! this val)
Property.
The scope read-only property of the web.ServiceWorkerRegistration
returns a unique identifier for a service worker registration.
service worker must be on the same origin as the document that
the ServiceWorker.
swScope = ServiceWorkerRegistration.scope;
See also: https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerRegistration/scope
Property. The scope read-only property of the `web.ServiceWorkerRegistration` returns a unique identifier for a service worker registration. service worker must be on the same origin as the document that the ServiceWorker. `swScope = ServiceWorkerRegistration.scope;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerRegistration/scope`
(set-sync! this val)
Property.
The sync property of the web.ServiceWorkerRegistration
interface
a reference to the web.SyncManager
interface, which manages
synchronization processes.
mySyncManager = ServiceWorker.sync
See also: https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerRegistration/sync
Property. The sync property of the `web.ServiceWorkerRegistration` interface a reference to the `web.SyncManager` interface, which manages synchronization processes. `mySyncManager = ServiceWorker.sync` See also: `https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerRegistration/sync`
(set-waiting! this val)
Property.
The waiting property of the web.ServiceWorkerRegistration
interface
a service worker whose web.ServiceWorker.state
is installed.
property is initially set to null.
var serviceWorker = ServiceWorker.waiting
See also: https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerRegistration/waiting
Property. The waiting property of the `web.ServiceWorkerRegistration` interface a service worker whose `web.ServiceWorker.state` is installed. property is initially set to null. `var serviceWorker = ServiceWorker.waiting` See also: `https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerRegistration/waiting`
(show-notification this & args)
Method.
The showNotification() method of the web.ServiceWorkerRegistration
creates a notification on an active service worker.
ServiceWorkerRegistration.showNotification(title, [options]);
See also: https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerRegistration/showNotification
Method. The showNotification() method of the `web.ServiceWorkerRegistration` creates a notification on an active service worker. `ServiceWorkerRegistration.showNotification(title, [options]);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerRegistration/showNotification`
(sync this)
Property.
The sync property of the web.ServiceWorkerRegistration
interface
a reference to the web.SyncManager
interface, which manages
synchronization processes.
mySyncManager = ServiceWorker.sync
See also: https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerRegistration/sync
Property. The sync property of the `web.ServiceWorkerRegistration` interface a reference to the `web.SyncManager` interface, which manages synchronization processes. `mySyncManager = ServiceWorker.sync` See also: `https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerRegistration/sync`
(unregister this & args)
Method.
The unregister method of the web.ServiceWorkerRegistration
unregisters the service worker registration and returns a web.Promise
.
promise will resolve to false if no registration was found, otherwise
resolves to true irrespective of whether unregistration happened
not (it may not unregister if someone else just called web.ServiceWorkerContainer.register
the same scope.) The service worker will finish any ongoing operations
it is unregistered.
ServiceWorkerRegistration.unregister().then(function(boolean) { });
See also: https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerRegistration/unregister
Method. The unregister method of the `web.ServiceWorkerRegistration` unregisters the service worker registration and returns a `web.Promise`. promise will resolve to false if no registration was found, otherwise resolves to true irrespective of whether unregistration happened not (it may not unregister if someone else just called `web.ServiceWorkerContainer.register` the same scope.) The service worker will finish any ongoing operations it is unregistered. `ServiceWorkerRegistration.unregister().then(function(boolean) { });` See also: `https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerRegistration/unregister`
(update this)
Method.
The update method of the web.ServiceWorkerRegistration
interface
to update the service worker. It fetches the worker's script
and if the new worker is not byte-by-byte identical to the current
it installs the new worker. The fetch of the worker bypasses
browser caches if the previous fetch occurred over 24 hours ago.
ServiceWorkerRegistration.update();
See also: https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerRegistration/update
Method. The update method of the `web.ServiceWorkerRegistration` interface to update the service worker. It fetches the worker's script and if the new worker is not byte-by-byte identical to the current it installs the new worker. The fetch of the worker bypasses browser caches if the previous fetch occurred over 24 hours ago. `ServiceWorkerRegistration.update();` See also: `https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerRegistration/update`
(waiting this)
Property.
The waiting property of the web.ServiceWorkerRegistration
interface
a service worker whose web.ServiceWorker.state
is installed.
property is initially set to null.
var serviceWorker = ServiceWorker.waiting
See also: https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerRegistration/waiting
Property. The waiting property of the `web.ServiceWorkerRegistration` interface a service worker whose `web.ServiceWorker.state` is installed. property is initially set to null. `var serviceWorker = ServiceWorker.waiting` See also: `https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerRegistration/waiting`
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close