SyncEvent
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.
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
|
|
|
|
|
|
|
|
|
|
|
|
|
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
- No support
- No support
- See implementation notes.