SwUpdate
Subscribe to update notifications from the Service Worker, trigger update checks, and forcibly activate updates.
class SwUpdate {
available: Observable<UpdateAvailableEvent>
activated: Observable<UpdateActivatedEvent>
unrecoverable: Observable<UnrecoverableStateEvent>
isEnabled: boolean
checkForUpdate(): Promise<void>
activateUpdate(): Promise<void>
}
参见
Provided in
属性
属性 | 说明 |
---|---|
available: Observable<UpdateAvailableEvent> | 只读 Emits an |
activated: Observable<UpdateActivatedEvent> | 只读 Emits an |
unrecoverable: Observable<UnrecoverableStateEvent> | 只读 Emits an |
isEnabled: boolean | 只读 True if the Service Worker is enabled (supported by the browser and enabled via |
方法
参数没有参数。 返回值
|
参数没有参数。 返回值
|