Interface ServiceWorkerRegistrationState


@JsType(isNative=true, name="ng.ServiceWorkerRegistrationState", namespace="<global>") public interface ServiceWorkerRegistrationState
Template-friendly snapshot of the current registration.
  • Method Details

    • create

      @JsOverlay static ServiceWorkerRegistrationState create()
    • getActive

      @JsProperty String getActive()
      State of the active worker, when present.
    • getInstalling

      @JsProperty String getInstalling()
      State of the installing worker, when present.
    • getScope

      @JsProperty String getScope()
      Registration scope, when available.
    • getUpdateViaCache

      @JsProperty String getUpdateViaCache()
      Update cache policy reported by the browser registration.
    • getWaiting

      @JsProperty String getWaiting()
      State of the waiting worker, when present.
    • isRegistered

      @JsProperty boolean isRegistered()
      True when a registration is currently known by the service.
    • setActive

      @JsProperty void setActive(String active)
      State of the active worker, when present.
    • setInstalling

      @JsProperty void setInstalling(String installing)
      State of the installing worker, when present.
    • setRegistered

      @JsProperty void setRegistered(boolean registered)
      True when a registration is currently known by the service.
    • setScope

      @JsProperty void setScope(String scope)
      Registration scope, when available.
    • setUpdateViaCache

      @JsProperty void setUpdateViaCache(String updateViaCache)
      Update cache policy reported by the browser registration.
    • setWaiting

      @JsProperty void setWaiting(String waiting)
      State of the waiting worker, when present.