SwUpdate
Subscribe to update notifications from the Service Worker, trigger update checks, and forcibly activate updates.
class SwUpdate {
available: Observable<UpdateAvailableEvent>
activated: Observable<UpdateActivatedEvent>
isEnabled: boolean
checkForUpdate(): Promise<void>
activateUpdate(): Promise<void>
}
Properties
Property | Description |
---|---|
available: Observable<UpdateAvailableEvent>
|
Read-only.
Emits an |
activated: Observable<UpdateActivatedEvent>
|
Read-only.
Emits an |
isEnabled: boolean
|
Read-only.
True if the Service Worker is enabled (supported by the browser and enabled via
|
Methods
ParametersThere are no parameters. Returns
|
ParametersThere are no parameters. Returns
|