ServiceWorkerState Enum
The state of a service worker (https://w3c.github.io/ServiceWorker/#enumdef-serviceworkerstate).
public enum ServiceWorkerStateFields
| Name | Value | Description |
|---|---|---|
Parsed | 0 | The script of the service worker was fetched and is about to be installed. |
Installing | 1 | The install event of the service worker is dispatched. |
Installed | 2 | The service worker is installed, and waits to be activated. |
Activating | 3 | The activate event of the service worker is dispatched. |
Activated | 4 | The service worker is activated: it handles the functional events (e.g. fetch). |
Redundant | 5 | The service worker was replaced by a new one, its installation failed, or its registration was cleared. |