Movatterモバイル変換


[0]ホーム

URL:


  1. Web
  2. Web APIs
  3. SyncEvent
  4. SyncEvent()

SyncEvent: SyncEvent() constructor

Limited availability

This feature is not Baseline because it does not work in some of the most widely-used browsers.

Note: This feature is only available inService Workers.

TheSyncEvent() constructor creates a newSyncEvent object.

Syntax

js
new SyncEvent(type, options)

Parameters

type

A string with the name of the event.It is case-sensitive and browsers always set it tosync.

options

An object that, in addition to the properties defined inExtendableEvent(), can have the following properties:

tag

A developer-defined unique identifier for thisSyncEvent.

lastChanceOptional

A boolean value indicating that the user agent will not make further synchronization attempts after the current attempt.It defaults tofalse.

Return value

A newSyncEvent object.

Specifications

Specification
Web Background Synchronization
# dom-syncevent-syncevent

Browser compatibility

Help improve MDN

Learn how to contribute

This page was last modified on byMDN contributors.


[8]ページ先頭

©2009-2025 Movatter.jp