forked from w3c/webref
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbackground-sync.idl
More file actions
30 lines (25 loc) · 837 Bytes
/
background-sync.idl
File metadata and controls
30 lines (25 loc) · 837 Bytes
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
29
30
// GENERATED CONTENT - DO NOT EDIT
// Content was automatically extracted by Reffy into webref
// (https://github.com/w3c/webref)
// Source: Web Background Synchronization (https://wicg.github.io/background-sync/spec/)
partial interface ServiceWorkerRegistration {
readonly attribute SyncManager sync;
};
[Exposed=(Window,Worker)]
interface SyncManager {
Promise<undefined> register(DOMString tag);
Promise<sequence<DOMString>> getTags();
};
partial interface ServiceWorkerGlobalScope {
attribute EventHandler onsync;
};
[Exposed=ServiceWorker]
interface SyncEvent : ExtendableEvent {
constructor(DOMString type, SyncEventInit init);
readonly attribute DOMString tag;
readonly attribute boolean lastChance;
};
dictionary SyncEventInit : ExtendableEventInit {
required DOMString tag;
boolean lastChance = false;
};