Back to Content

SyncEvent

files/en-us/web/api/syncevent/index.md

latest1.1 KB
Original Source

{{APIRef("Background Sync")}}{{AvailableInWorkers("service")}}

The SyncEvent interface of the {{domxref("Background Synchronization API", "", "", "nocode")}} represents a sync action that is dispatched on the {{domxref("ServiceWorkerGlobalScope")}} of a ServiceWorker.

This interface inherits from the {{domxref("ExtendableEvent")}} interface.

{{InheritanceDiagram}}

Constructor

  • {{domxref("SyncEvent.SyncEvent", "SyncEvent()")}}
    • : Creates a new SyncEvent object.

Instance properties

Inherits properties from its parent, {{domxref("ExtendableEvent")}} and {{domxref("Event")}}.

  • {{domxref("SyncEvent.tag")}} {{ReadOnlyInline}}
    • : Returns the developer-defined identifier for this SyncEvent.
  • {{domxref("SyncEvent.lastChance")}} {{ReadOnlyInline}}
    • : Returns true if the user agent will not make further synchronization attempts after the current attempt.

Instance methods

Inherits methods from its parent, {{domxref("ExtendableEvent")}} and {{domxref("Event")}}.

None.

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}