pub struct ServiceWorkerRegistration { /* private fields */ }
Expand description
The ServiceWorkerRegistration
class.
This API requires the following crate features to be activated: ServiceWorkerRegistration
Implementations§
Source§impl ServiceWorkerRegistration
impl ServiceWorkerRegistration
Sourcepub fn installing(&self) -> Option<ServiceWorker>
pub fn installing(&self) -> Option<ServiceWorker>
Getter for the installing
field of this object.
This API requires the following crate features to be activated: ServiceWorker
, ServiceWorkerRegistration
Source§impl ServiceWorkerRegistration
impl ServiceWorkerRegistration
Sourcepub fn waiting(&self) -> Option<ServiceWorker>
pub fn waiting(&self) -> Option<ServiceWorker>
Getter for the waiting
field of this object.
This API requires the following crate features to be activated: ServiceWorker
, ServiceWorkerRegistration
Source§impl ServiceWorkerRegistration
impl ServiceWorkerRegistration
Sourcepub fn active(&self) -> Option<ServiceWorker>
pub fn active(&self) -> Option<ServiceWorker>
Getter for the active
field of this object.
This API requires the following crate features to be activated: ServiceWorker
, ServiceWorkerRegistration
Source§impl ServiceWorkerRegistration
impl ServiceWorkerRegistration
Source§impl ServiceWorkerRegistration
impl ServiceWorkerRegistration
Sourcepub fn update_via_cache(&self) -> Result<ServiceWorkerUpdateViaCache, JsValue>
pub fn update_via_cache(&self) -> Result<ServiceWorkerUpdateViaCache, JsValue>
Getter for the updateViaCache
field of this object.
This API requires the following crate features to be activated: ServiceWorkerRegistration
, ServiceWorkerUpdateViaCache
Source§impl ServiceWorkerRegistration
impl ServiceWorkerRegistration
Sourcepub fn onupdatefound(&self) -> Option<Function>
pub fn onupdatefound(&self) -> Option<Function>
Getter for the onupdatefound
field of this object.
This API requires the following crate features to be activated: ServiceWorkerRegistration
Source§impl ServiceWorkerRegistration
impl ServiceWorkerRegistration
Sourcepub fn set_onupdatefound(&self, value: Option<&Function>)
pub fn set_onupdatefound(&self, value: Option<&Function>)
Setter for the onupdatefound
field of this object.
This API requires the following crate features to be activated: ServiceWorkerRegistration
Source§impl ServiceWorkerRegistration
impl ServiceWorkerRegistration
Sourcepub fn push_manager(&self) -> Result<PushManager, JsValue>
pub fn push_manager(&self) -> Result<PushManager, JsValue>
Getter for the pushManager
field of this object.
This API requires the following crate features to be activated: PushManager
, ServiceWorkerRegistration