Table of Contents

Class SyncManager

Namespace
CSharpToJavaScript.APIs.JS
Assembly
CSharpToJavaScript.dll

The SyncManager interface of the {{domxref("Background Synchronization API", "", "", "nocode")}} provides an interface for registering and listing sync registrations.

[Value("SyncManager")]
public class SyncManager
Inheritance
SyncManager
Inherited Members

Remarks

Constructors

SyncManager()

public SyncManager()

Methods

GetTags()

The getTags() method of the
SyncManager interface returns a list of developer-defined identifiers for
SyncManager registrations.

[Value("getTags")]
public Task<List<string>> GetTags()

Returns

Task<List<string>>

A Promise that resolves to an array of strings
containing developer-defined identifiers for SyncManager registrations.

Remarks

Register(string)

The register() method of the SyncManager interface registers a synchronization event, triggering a ServiceWorkerGlobalScope.Sync event inside the associated service worker as soon as network connectivity is available.

[Value("register")]
public Task<GlobalObject.Undefined> Register(string tag)

Parameters

tag string

Returns

Task<GlobalObject.Undefined>

A Promise that resolves to GlobalObject.Undefined.

Remarks