Skip to content

Latest commit

 

History

History
22 lines (15 loc) · 1.11 KB

SyncManager.md

File metadata and controls

22 lines (15 loc) · 1.11 KB

SyncManager

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

Constructors

Signature Description
SyncManager(SpawnJSObjectReference _ref) Deserialization constructor

Methods

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.