Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

Revision 898001 of PeriodicSyncEvent

  • Revision slug: Web/API/PeriodicSyncEvent
  • Revision title: PeriodicSyncEvent
  • Revision id: 898001
  • Created:
  • Creator: jpmedley
  • Is current revision? No
  • Comment

Revision Content

{{APIRef("Service Workers API")}} {{Non-standard_header}}

The parameter passed into the sync handler, the PeriodicSyncEvent interface represents a periodic sync action that is dispatched on the {{domxref("ServiceWorkerGlobalScope")}} of a ServiceWorker. 

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

{{InheritanceDiagram(700, 60, 20)}}

Constructor

{{domxref("PeriodicSyncEvent.PeriodicSyncEvent()")}}
Creates a new PeriodicSyncEvent object.

Properties

Inherits properties from its ancestor, {{domxref("Event")}}.

{{domxref("PeriodicSyncEvent.registration")}}
The instance of {{domxref("PeriodicSyncRegistration")}} that fired the event.

Methods

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

Examples

// TBD

Browser compatibility

{{CompatibilityTable}}
Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari (WebKit)
Basic support {{CompatNo}} {{CompatUnknown}} {{CompatUnknown}} {{CompatUnknown}} {{CompatUnknown}}
Feature Android Firefox Mobile (Gecko) Firefox OS IE Mobile Opera Mobile Safari Mobile Chrome for Android
Basic support {{CompatNo}} {{CompatUnknown}} {{CompatUnknown}} {{CompatUnknown}} {{CompatUnknown}} {{CompatUnknown}} {{CompatNo}}

Revision Source

<p>{{APIRef("Service Workers API")}}&nbsp;{{Non-standard_header}}</p>

<p><span style="line-height:19.0909080505371px">The parameter passed into the sync handler, the PeriodicSyncEvent interface represents a periodic sync action that is dispatched on the {{domxref("ServiceWorkerGlobalScope")}}&nbsp;of a ServiceWorker.&nbsp;</span></p>

<p>This interface inherits from the {{domxref("ExtendableEvent")}} interface.</p>

<p>{{InheritanceDiagram(700, 60, 20)}}</p>

<h2 id="Constructor">Constructor</h2>

<dl>
 <dt>{{domxref("PeriodicSyncEvent.PeriodicSyncEvent()")}}</dt>
 <dd>Creates a new <code>PeriodicSyncEvent</code> object.</dd>
</dl>

<h2 id="Properties">Properties</h2>

<p><em>Inherits properties from its ancestor, {{domxref("Event")}}</em>.</p>

<dl>
 <dt>{{domxref("PeriodicSyncEvent.registration")}}</dt>
 <dd>The instance of {{domxref("PeriodicSyncRegistration")}} that fired the event.</dd>
</dl>

<h2 id="Methods">Methods</h2>

<p><em>Inherits methods from its parent, </em><em>{{domxref("ExtendableEvent")}}</em>.&nbsp;</p>

<h2 id="Examples">Examples</h2>

<pre class="brush: js">
// TBD
</pre>

<h2 id="Browser_compatibility">Browser compatibility</h2>

<div>{{CompatibilityTable}}</div>

<div id="compat-desktop">
<table class="compat-table">
 <tbody>
  <tr>
   <th>Feature</th>
   <th>Chrome</th>
   <th>Firefox (Gecko)</th>
   <th>Internet Explorer</th>
   <th>Opera</th>
   <th>Safari (WebKit)</th>
  </tr>
  <tr>
   <td>Basic support</td>
   <td>{{CompatNo}}</td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatUnknown}}</td>
  </tr>
 </tbody>
</table>
</div>

<div id="compat-mobile">
<table class="compat-table">
 <tbody>
  <tr>
   <th>Feature</th>
   <th>Android</th>
   <th>Firefox Mobile (Gecko)</th>
   <th>Firefox OS</th>
   <th>IE Mobile</th>
   <th>Opera Mobile</th>
   <th>Safari Mobile</th>
   <th>Chrome for Android</th>
  </tr>
  <tr>
   <td>Basic support</td>
   <td>{{CompatNo}}</td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatNo}}</td>
  </tr>
 </tbody>
</table>
</div>
Revert to this revision