Liking cljdoc? Tell your friends :D

web.workers.ServiceWorkerRegistration

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.
raw docstring

activecljs

(active this)

Property.

[Read Only]

The active property of the web.workers.ServiceWorkerRegistration returns a service worker whose 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.

[Read Only]

The active property of the `web.workers.ServiceWorkerRegistration`
returns a service worker whose `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`
sourceraw docstring

get-notificationscljs

(get-notifications this & args)

Method.

The getNotifications() method of the web.workers.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.workers.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`
sourceraw docstring

installingcljs

(installing this)

Property.

[Read Only]

The installing property of the web.workers.ServiceWorkerRegistration returns a service worker whose 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.

[Read Only]

The installing property of the `web.workers.ServiceWorkerRegistration`
returns a service worker whose `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`
sourceraw docstring

(navigation-preload this)

Property.

[Read Only]

The navigationPreload read-only property of the web.workers.ServiceWorkerRegistration returns the web.service-workers.NavigationPreloadManager associated the current service worker registration.

var navigationPreloadManager = serviceWorkerRegistration.navigationPreload

See also: https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerRegistration/navigationPreload

Property.

[Read Only]

The navigationPreload read-only property of the `web.workers.ServiceWorkerRegistration`
returns the `web.service-workers.NavigationPreloadManager` associated
the current service worker registration.

`var navigationPreloadManager = serviceWorkerRegistration.navigationPreload`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerRegistration/navigationPreload`
sourceraw docstring

onupdatefoundcljs

(onupdatefound this)

Property.

[Read Only]

The onupdatefound property of the web.workers.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.

[Read Only]

The onupdatefound property of the `web.workers.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`
sourceraw docstring

periodic-synccljs

(periodic-sync this)

Property.

[Read Only]

The periodicSync read-only property of the web.workers.ServiceWorkerRegistration returns a reference to the PeriodicSyncManager interface, which periodic background synchronization processes.

myPeriodicSync = ServiceWorker.periodicSync

See also: https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerRegistration/periodicSync

Property.

[Read Only]

The periodicSync read-only property of the `web.workers.ServiceWorkerRegistration`
returns a reference to the `PeriodicSyncManager` interface, which
periodic background synchronization processes.

`myPeriodicSync = ServiceWorker.periodicSync`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerRegistration/periodicSync`
sourceraw docstring

push-managercljs

(push-manager this)

Property.

[Read Only]

The pushManager property of the web.workers.ServiceWorkerRegistration returns a reference to the web.service-workers.PushManager for managing push subscriptions; this includes support for subscribing, an active subscription, and accessing push permission status.

myPushManager = ServiceWorker.pushManager

See also: https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerRegistration/pushManager

Property.

[Read Only]

The pushManager property of the `web.workers.ServiceWorkerRegistration`
returns a reference to the `web.service-workers.PushManager`
for managing push subscriptions; this includes support for subscribing,
an active subscription, and accessing push permission status.

`myPushManager = ServiceWorker.pushManager`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerRegistration/pushManager`
sourceraw docstring

scopecljs

(scope this)

Property.

[Read Only]

The scope read-only property of the web.workers.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.

[Read Only]

The scope read-only property of the `web.workers.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`
sourceraw docstring

show-notificationcljs

(show-notification this & args)

Method.

The showNotification() method of the web.workers.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.workers.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`
sourceraw docstring

synccljs

(sync this)

Property.

[Read Only] [Non Standard]

The sync property of the web.workers.ServiceWorkerRegistration returns a reference to the web.service-workers.SyncManager which manages background synchronization processes.

mySyncManager = ServiceWorker.sync

See also: https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerRegistration/sync

Property.

[Read Only]
[Non Standard]

The sync property of the `web.workers.ServiceWorkerRegistration`
returns a reference to the `web.service-workers.SyncManager`
which manages background synchronization processes.

`mySyncManager = ServiceWorker.sync`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerRegistration/sync`
sourceraw docstring

unregistercljs

(unregister this & args)

Method.

The unregister method of the web.workers.ServiceWorkerRegistration unregisters the service worker registration and returns a js.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 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.workers.ServiceWorkerRegistration`
unregisters the service worker registration and returns a `js.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 `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`
sourceraw docstring

updatecljs

(update this)

Method.

The update method of the web.workers.ServiceWorkerRegistration attempts to update the service worker. It fetches the worker's URL, and if the new worker is not byte-by-byte identical to the worker, 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.workers.ServiceWorkerRegistration`
attempts to update the service worker. It fetches the worker's
URL, and if the new worker is not byte-by-byte identical to the
worker, 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`
sourceraw docstring

waitingcljs

(waiting this)

Property.

[Read Only]

The waiting property of the web.workers.ServiceWorkerRegistration returns a service worker whose 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.

[Read Only]

The waiting property of the `web.workers.ServiceWorkerRegistration`
returns a service worker whose `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`
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close