Package org.angular.ts.ng
Interface ServiceWorkerUpdateState
@JsType(isNative=true,
name="ng.ServiceWorkerUpdateState",
namespace="<global>")
public interface ServiceWorkerUpdateState
Template-friendly snapshot of update-related service-worker state.
-
Method Summary
Modifier and TypeMethodDescriptionstatic ServiceWorkerUpdateStatecreate()getError()Native error preserved for diagnostics.Stable failure code from the last update-related operation.doubleLast successful update-check time in epoch milliseconds.getPhase()Latest observed service worker lifecycle phase.elemental2.dom.ServiceWorkerRegistrationRegistration associated with the latest update event.elemental2.dom.ServiceWorkerWorker associated with the latest update event.booleanTrue while an explicit update check is in flight.booleanTrue when the active worker changed during the current page lifetime.booleanTrue when a waiting worker has been discovered.voidsetChecking(boolean checking) True while an explicit update check is in flight.voidsetControllerChanged(boolean controllerChanged) True when the active worker changed during the current page lifetime.voidNative error preserved for diagnostics.voidsetErrorCode(String errorCode) Stable failure code from the last update-related operation.voidsetLastCheckedAt(double lastCheckedAt) Last successful update-check time in epoch milliseconds.voidLatest observed service worker lifecycle phase.voidsetRegistration(elemental2.dom.ServiceWorkerRegistration registration) Registration associated with the latest update event.voidsetWaiting(boolean waiting) True when a waiting worker has been discovered.voidsetWorker(elemental2.dom.ServiceWorker worker) Worker associated with the latest update event.
-
Method Details
-
create
-
getError
Native error preserved for diagnostics. -
getErrorCode
Stable failure code from the last update-related operation. -
getLastCheckedAt
@JsProperty double getLastCheckedAt()Last successful update-check time in epoch milliseconds. -
getPhase
Latest observed service worker lifecycle phase. -
getRegistration
@JsProperty elemental2.dom.ServiceWorkerRegistration getRegistration()Registration associated with the latest update event. -
getWorker
@JsProperty elemental2.dom.ServiceWorker getWorker()Worker associated with the latest update event. -
isChecking
@JsProperty boolean isChecking()True while an explicit update check is in flight. -
isControllerChanged
@JsProperty boolean isControllerChanged()True when the active worker changed during the current page lifetime. -
isWaiting
@JsProperty boolean isWaiting()True when a waiting worker has been discovered. -
setChecking
@JsProperty void setChecking(boolean checking) True while an explicit update check is in flight. -
setControllerChanged
@JsProperty void setControllerChanged(boolean controllerChanged) True when the active worker changed during the current page lifetime. -
setError
Native error preserved for diagnostics. -
setErrorCode
Stable failure code from the last update-related operation. -
setLastCheckedAt
@JsProperty void setLastCheckedAt(double lastCheckedAt) Last successful update-check time in epoch milliseconds. -
setPhase
Latest observed service worker lifecycle phase. -
setRegistration
@JsProperty void setRegistration(elemental2.dom.ServiceWorkerRegistration registration) Registration associated with the latest update event. -
setWaiting
@JsProperty void setWaiting(boolean waiting) True when a waiting worker has been discovered. -
setWorker
@JsProperty void setWorker(elemental2.dom.ServiceWorker worker) Worker associated with the latest update event.
-