Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ServiceWorkerContainer

Hierarchy

Index

Properties

EventTarget

EventTarget: object

Type declaration

  • constructor: function
    • Returns EventTarget

  • prototype: EventTarget

controller

controller: ServiceWorker | null

oncontrollerchange

oncontrollerchange: function | null

onmessage

onmessage: function | null

onmessageerror

onmessageerror: function | null

ready

Methods

addEventListener

dispatchEvent

  • 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

    Returns boolean

getRegistration

  • Parameters

    • Optional clientURL: undefined | string

    Returns Promise<ServiceWorkerRegistration | undefined>

getRegistrations

  • Returns Promise<ReadonlyArray<ServiceWorkerRegistration>>

register

removeEventListener

startMessages

  • startMessages(): void
  • Returns void

Generated using TypeDoc