periodic-background-sync.idl (1062B)
1 // GENERATED CONTENT - DO NOT EDIT 2 // Content was automatically extracted by Reffy into webref 3 // (https://github.com/w3c/webref) 4 // Source: Web Periodic Background Synchronization (https://wicg.github.io/periodic-background-sync/) 5 6 partial interface ServiceWorkerGlobalScope { 7 attribute EventHandler onperiodicsync; 8 }; 9 10 [Exposed=(Window,Worker)] 11 partial interface ServiceWorkerRegistration { 12 readonly attribute PeriodicSyncManager periodicSync; 13 }; 14 15 [Exposed=(Window,Worker)] 16 interface PeriodicSyncManager { 17 Promise<undefined> register(DOMString tag, optional BackgroundSyncOptions options = {}); 18 Promise<sequence<DOMString>> getTags(); 19 Promise<undefined> unregister(DOMString tag); 20 }; 21 22 dictionary BackgroundSyncOptions { 23 [EnforceRange] unsigned long long minInterval = 0; 24 }; 25 26 dictionary PeriodicSyncEventInit : ExtendableEventInit { 27 required DOMString tag; 28 }; 29 30 [Exposed=ServiceWorker] 31 interface PeriodicSyncEvent : ExtendableEvent { 32 constructor(DOMString type, PeriodicSyncEventInit init); 33 readonly attribute DOMString tag; 34 };