SyncEvent
Note: This feature is only available in Service Workers.
The SyncEvent interface of the Background Synchronization API represents a sync action that is dispatched on the ServiceWorkerGlobalScope of a ServiceWorker.
This interface inherits from the ExtendableEvent interface.
Constructor
SyncEvent()-
Creates a new
SyncEventobject.
Instance properties
Inherits properties from its parent, ExtendableEvent and Event.
SyncEvent.tagRead only-
Returns the developer-defined identifier for this
SyncEvent. SyncEvent.lastChanceRead only-
Returns
trueif the user agent will not make further synchronization attempts after the current attempt.
Instance methods
Inherits methods from its parent, ExtendableEvent and Event.
None.
Specifications
| Specification |
|---|
| Web Background Synchronization # sync-event |
Browser compatibility
| desktop | mobile | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
SyncEvent | |||||||||||
SyncEvent() constructor | |||||||||||
lastChance | |||||||||||
tag | |||||||||||