Namespace: SpawnDev.SpawnJS.JSObjects
Inherits: SpawnJSObject
Source: JSObjects/SyncManager.cs
MDN Reference: SyncManager on MDN
The SyncManager interface of the Background Synchronization API provides an interface for registering and listing sync registrations. https://developer.mozilla.org/en-US/docs/Web/API/SyncManager
| Signature | Description |
|---|---|
SyncManager(SpawnJSObjectReference _ref) |
Deserialization constructor |
| Method | Return Type | Description |
|---|---|---|
Register(string tag) |
Task |
The SyncManager interface of the Background Synchronization API provides an interface for registering and listing sync registrations. An identifier for this synchronization event. This will be the value of the tag property of the SyncEvent that gets passed into the service worker's sync event handler. |
GetTags() |
Task<string[]> |
The getTags() method of the SyncManager interface returns a list of developer-defined identifiers for SyncManager registrations. |