Package org.angular.ts.ng
Interface ServiceWorkerRegistrationState
@JsType(isNative=true,
name="ng.ServiceWorkerRegistrationState",
namespace="<global>")
public interface ServiceWorkerRegistrationState
Template-friendly snapshot of the current registration.
-
Method Summary
Modifier and TypeMethodDescriptioncreate()State of the active worker, when present.State of the installing worker, when present.getScope()Registration scope, when available.Update cache policy reported by the browser registration.State of the waiting worker, when present.booleanTrue when a registration is currently known by the service.voidState of the active worker, when present.voidsetInstalling(String installing) State of the installing worker, when present.voidsetRegistered(boolean registered) True when a registration is currently known by the service.voidRegistration scope, when available.voidsetUpdateViaCache(String updateViaCache) Update cache policy reported by the browser registration.voidsetWaiting(String waiting) State of the waiting worker, when present.
-
Method Details
-
create
-
getActive
State of the active worker, when present. -
getInstalling
State of the installing worker, when present. -
getScope
Registration scope, when available. -
getUpdateViaCache
Update cache policy reported by the browser registration. -
getWaiting
State of the waiting worker, when present. -
isRegistered
@JsProperty boolean isRegistered()True when a registration is currently known by the service. -
setActive
State of the active worker, when present. -
setInstalling
State of the installing worker, when present. -
setRegistered
@JsProperty void setRegistered(boolean registered) True when a registration is currently known by the service. -
setScope
Registration scope, when available. -
setUpdateViaCache
Update cache policy reported by the browser registration. -
setWaiting
State of the waiting worker, when present.
-