Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ServiceWorkerRegistration

This ServiceWorker API interface represents the service worker registration. You register a service worker to control one or more pages that share the same origin.

Hierarchy

Index

Properties

Readonly active

active: null | <internal>.ServiceWorker

Readonly installing

installing: null | <internal>.ServiceWorker

Readonly navigationPreload

onupdatefound

onupdatefound: null | ((ev: <internal>.Event) => any)

Readonly pushManager

pushManager: <internal>.PushManager

Readonly scope

scope: string

Readonly sync

Readonly updateViaCache

Readonly waiting

waiting: null | <internal>.ServiceWorker

Methods

addEventListener

dispatchEvent

  • Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise.

    Parameters

    Returns boolean

getNotifications

removeEventListener

showNotification

  • Parameters

    Returns Promise<void>

unregister

  • unregister(): Promise<boolean>
  • Returns Promise<boolean>

update

  • update(): Promise<void>
  • Returns Promise<void>

Generated using TypeDoc