ServiceWorkerState Enum

The state of a service worker (https://w3c.github.io/ServiceWorker/#enumdef-serviceworkerstate).

public enum ServiceWorkerState

Fields

NameValueDescription
Parsed0The script of the service worker was fetched and is about to be installed.
Installing1The install event of the service worker is dispatched.
Installed2The service worker is installed, and waits to be activated.
Activating3The activate event of the service worker is dispatched.
Activated4The service worker is activated: it handles the functional events (e.g. fetch).
Redundant5The service worker was replaced by a new one, its installation failed, or its registration was cleared.