Class SyncEvent
- Namespace
- CSharpToJavaScript.APIs.JS
- Assembly
- CSharpToJavaScript.dll
The SyncEvent interface of the {{domxref("Background Synchronization API", "", "", "nocode")}} represents a sync action that is dispatched on the ServiceWorkerGlobalScope of a ServiceWorker.
[Value("SyncEvent")]
public class SyncEvent : ExtendableEvent
- Inheritance
-
SyncEvent
- Inherited Members
Remarks
This interface inherits from the ExtendableEvent interface.
Constructors
SyncEvent()
public SyncEvent()
SyncEvent(string, SyncEventInit)
The SyncEvent() constructor creates a new SyncEvent object.
public SyncEvent(string type, SyncEventInit init)
Parameters
typestringinitSyncEventInit
Remarks
Properties
LastChance
The lastChance read-only property of the
SyncEvent interface returns true if the user agent will not
make further synchronization attempts after the current attempt. This is the value
passed in the lastChance parameter of the
SyncEvent(string, SyncEventInit) constructor.
[Value("lastChance")]
public bool LastChance { get; }
Property Value
- bool
A boolean value that indicates whether the user agent will not make further
synchronization attempts after the current attempt.
Remarks
Tag
The tag read-only property of the
SyncEvent interface returns the developer-defined identifier for
this SyncEvent. This is the value passed in the tag parameter
of the SyncEvent(string, SyncEventInit) constructor.
[Value("tag")]
public string Tag { get; }
Property Value
- string
The developer-defined identifier for this
SyncEvent.