ServiceWorkerRegistration

Overview

The ServiceWorkerRegistration interface of the Service Worker API represents the service worker registration. You register a service worker to control one or more pages that share the same origin.

Location

 

active

 

property active: String read;

 

String active { get; }

 

var active: String { get{} }

 

String active { __get; }

 

ReadOnly Property active() As String

getNotifications

Returns a Promise that resolves to an array of Notification objects.

 

method getNotifications(paroptions: dynamic): dynamic

 

dynamic getNotifications(dynamic paroptions)

 

func getNotifications(_ paroptions: dynamic) -> dynamic

 

dynamic getNotifications(dynamic paroptions)

 

Function getNotifications(paroptions As dynamic) As dynamic

Parameters:

  • paroptions:

installing

 

property installing: dynamic read;

 

dynamic installing { get; }

 

var installing: dynamic { get{} }

 

dynamic installing { __get; }

 

ReadOnly Property installing() As dynamic

 

property navigationPreload: dynamic read;

 

dynamic navigationPreload { get; }

 

var navigationPreload: dynamic { get{} }

 

dynamic navigationPreload { __get; }

 

ReadOnly Property navigationPreload() As dynamic

onupdatefound

 

property onupdatefound: EventListener read write;

 

EventListener onupdatefound { get; set; }

 

var onupdatefound: EventListener { get{} set{} }

 

EventListener onupdatefound { __get; __set; }

 

Property onupdatefound() As EventListener

pushManager

 

property pushManager: dynamic read;

 

dynamic pushManager { get; }

 

var pushManager: dynamic { get{} }

 

dynamic pushManager { __get; }

 

ReadOnly Property pushManager() As dynamic

showNotification

Displays the notification with the requested title.

 

method showNotification(partitle: dynamic; paroptions: dynamic): dynamic

 

dynamic showNotification(dynamic partitle, dynamic paroptions)

 

func showNotification(_ partitle: dynamic, _ paroptions: dynamic) -> dynamic

 

dynamic showNotification(dynamic partitle, dynamic paroptions)

 

Function showNotification(partitle As dynamic, paroptions As dynamic) As dynamic

Parameters:

  • partitle:
  • paroptions:

unregister

Unregisters the service worker registration and returns a Promise. The service worker will finish any ongoing operations before it is unregistered.

 

method unregister: dynamic

 

dynamic unregister()

 

func unregister() -> dynamic

 

dynamic unregister()

 

Function unregister() As dynamic

update

Checks the server for an updated version of the service worker without consulting caches.

 

method update: Int32

 

Int32 update()

 

func update() -> Int32

 

Int32 update()

 

Function update() As Int32

waiting

 

property waiting: dynamic read;

 

dynamic waiting { get; }

 

var waiting: dynamic { get{} }

 

dynamic waiting { __get; }

 

ReadOnly Property waiting() As dynamic

 

active

 

property active: String read;

 

String active { get; }

 

var active: String { get{} }

 

String active { __get; }

 

ReadOnly Property active() As String

installing

 

property installing: dynamic read;

 

dynamic installing { get; }

 

var installing: dynamic { get{} }

 

dynamic installing { __get; }

 

ReadOnly Property installing() As dynamic

 

property navigationPreload: dynamic read;

 

dynamic navigationPreload { get; }

 

var navigationPreload: dynamic { get{} }

 

dynamic navigationPreload { __get; }

 

ReadOnly Property navigationPreload() As dynamic

onupdatefound

 

property onupdatefound: EventListener read write;

 

EventListener onupdatefound { get; set; }

 

var onupdatefound: EventListener { get{} set{} }

 

EventListener onupdatefound { __get; __set; }

 

Property onupdatefound() As EventListener

pushManager

 

property pushManager: dynamic read;

 

dynamic pushManager { get; }

 

var pushManager: dynamic { get{} }

 

dynamic pushManager { __get; }

 

ReadOnly Property pushManager() As dynamic

waiting

 

property waiting: dynamic read;

 

dynamic waiting { get; }

 

var waiting: dynamic { get{} }

 

dynamic waiting { __get; }

 

ReadOnly Property waiting() As dynamic

 

getNotifications

Returns a Promise that resolves to an array of Notification objects.

 

method getNotifications(paroptions: dynamic): dynamic

 

dynamic getNotifications(dynamic paroptions)

 

func getNotifications(_ paroptions: dynamic) -> dynamic

 

dynamic getNotifications(dynamic paroptions)

 

Function getNotifications(paroptions As dynamic) As dynamic

Parameters:

  • paroptions:

showNotification

Displays the notification with the requested title.

 

method showNotification(partitle: dynamic; paroptions: dynamic): dynamic

 

dynamic showNotification(dynamic partitle, dynamic paroptions)

 

func showNotification(_ partitle: dynamic, _ paroptions: dynamic) -> dynamic

 

dynamic showNotification(dynamic partitle, dynamic paroptions)

 

Function showNotification(partitle As dynamic, paroptions As dynamic) As dynamic

Parameters:

  • partitle:
  • paroptions:

unregister

Unregisters the service worker registration and returns a Promise. The service worker will finish any ongoing operations before it is unregistered.

 

method unregister: dynamic

 

dynamic unregister()

 

func unregister() -> dynamic

 

dynamic unregister()

 

Function unregister() As dynamic

update

Checks the server for an updated version of the service worker without consulting caches.

 

method update: Int32

 

Int32 update()

 

func update() -> Int32

 

Int32 update()

 

Function update() As Int32