Package org.angular.ts.ng
Interface ServiceWorkerConfig
@JsType(isNative=true,
name="ng.ServiceWorkerConfig",
namespace="<global>")
public interface ServiceWorkerConfig
Declarative defaults used when registering an application service worker. This config intentionally maps only browser registration options and safe observation policy. Activation, reload, cache strategy, push, and background sync remain explicit application or adapter policy.
-
Method Summary
Modifier and TypeMethodDescriptionstatic ServiceWorkerConfigcreate()booleanRegister automatically when the runtime service is created.booleanCheck for an updated worker after registration succeeds.voidsetAutoRegister(boolean autoRegister) Register automatically when the runtime service is created.voidsetCheckForUpdatesOnRegister(boolean checkForUpdatesOnRegister) Check for an updated worker after registration succeeds.
-
Method Details
-
create
-
isAutoRegister
@JsProperty boolean isAutoRegister()Register automatically when the runtime service is created. -
isCheckForUpdatesOnRegister
@JsProperty boolean isCheckForUpdatesOnRegister()Check for an updated worker after registration succeeds. -
setAutoRegister
@JsProperty void setAutoRegister(boolean autoRegister) Register automatically when the runtime service is created. -
setCheckForUpdatesOnRegister
@JsProperty void setCheckForUpdatesOnRegister(boolean checkForUpdatesOnRegister) Check for an updated worker after registration succeeds.
-