-
Notifications
You must be signed in to change notification settings - Fork 0
/
SyncManager.cljs
29 lines (20 loc) · 975 Bytes
/
SyncManager.cljs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
(ns web.service-workers.SyncManager
"The SyncManager interface of the the ServiceWorker API provides
interface for registering and listing sync registrations."
(:refer-clojure :exclude []))
(defn register
"Method.
The SyncManager.register method of the `web.service-workers.SyncManager`
returns a `js.Promise` that resolves to a `SyncRegistration`
`SyncManager.register([options]).then(function(syncRegistration) { ... })`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/SyncManager/register`"
[this & args]
(-> this .-register (.apply this (clj->js args))))
(defn get-tags
"Method.
The SyncManager.getTags method of the `web.service-workers.SyncManager`
returns a list of developer-defined identifiers for SyncManager
`SyncManager.getTags().then(function(tags[]) { ... })`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/SyncManager/getTags`"
[this & args]
(-> this .-getTags (.apply this (clj->js args))))