ServiceWorkers

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
fun addListener(type: EventType, listener: EventListener)
Link copied to clipboard
fun emit(type: EventType, vararg args: Any?): Boolean
Link copied to clipboard
Link copied to clipboard

A ServiceWorkerInfo object where the keys are the service worker version ID and the values are the information about that service worker.

Link copied to clipboard

Information about this service worker

Link copied to clipboard

Information about this service worker

Link copied to clipboard
Link copied to clipboard

Instance of the service worker associated with the given version ID. If there's no associated version, or its running status has changed to 'stopped', this will return undefined.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun off(type: EventType, listener: EventListener)
Link copied to clipboard
fun on(type: EventType, listener: EventListener)
Link copied to clipboard
fun once(type: EventType, listener: EventListener)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun removeListener(type: EventType, listener: EventListener)
Link copied to clipboard
Link copied to clipboard

Resolves with the service worker when it's started.