Liking cljdoc? Tell your friends :D

web.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.

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`
sourceraw docstring

get-notificationscljs

(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`
sourceraw docstring

installingcljs

(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`
sourceraw docstring

(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`
sourceraw docstring

onupdatefoundcljs

(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`
sourceraw docstring

periodic-synccljs

(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`
sourceraw docstring

push-managercljs

(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`
sourceraw docstring

scopecljs

(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`
sourceraw docstring

set-active!cljs

(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`
sourceraw docstring

set-installing!cljs

(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`
sourceraw docstring

set-navigation-preload!cljs

(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`
sourceraw docstring

set-onupdatefound!cljs

(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`
sourceraw docstring

set-periodic-sync!cljs

(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`
sourceraw docstring

set-push-manager!cljs

(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`
sourceraw docstring

set-scope!cljs

(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`
sourceraw docstring

set-sync!cljs

(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`
sourceraw docstring

set-waiting!cljs

(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`
sourceraw docstring

show-notificationcljs

(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`
sourceraw docstring

synccljs

(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`
sourceraw docstring

unregistercljs

(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`
sourceraw docstring

updatecljs

(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`
sourceraw docstring

waitingcljs

(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`
sourceraw docstring

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

× close