Options
All
  • Public
  • Public/Protected
  • All
Menu

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. Available only in secure contexts.

Hierarchy

  • EventTarget
    • ServiceWorkerRegistration

Index

Properties

active: null | internal.ServiceWorker
installing: null | internal.ServiceWorker
onupdatefound: null | ((this: internal.ServiceWorkerRegistration, ev: Event) => any)
pushManager: internal.PushManager
scope: string
waiting: null | internal.ServiceWorker

Methods

  • dispatchEvent(event: Event): boolean
  • 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

    • event: Event

    Returns boolean

  • Parameters

    Returns Promise<void>

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

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

Generated using TypeDoc