Service_worker.RegistrationService registration objects.
The type for ServiceWorkerRegistration objects.
val as_target : t -> Brr.Ev.targetas_target r is r as an event target.
val update : t -> unit Fut.or_errorupdate r attempts to update the service worker of r.
val unregister : t -> bool Fut.or_errorunregister r unregisters the service worker registration. This is false if no registration was false.
val show_notification :
?opts:Brr_io.Notification.opts ->
t ->
Jstr.t ->
unit Fut.or_errorshow_notification r title ~opts displays a notification with title title an options opts.
val get_notifications :
?tag:Jstr.t ->
t ->
Brr_io.Notification.t list Fut.or_errorget_notifications r ~tag are notifications created via r and tagged with tag (or all of them if unspecified).
val installing : t -> service_worker optioninstalling r is the installing service worker of r.
val waiting : t -> service_worker optionwaiting r is the installed service worker of r.
val active : t -> service_worker optionactive r is the active service worker of r.
navigation_preload r is the navigation preload manager of r.
val update_via_cache : t -> Update_via_cache.tupdate_via_cache r is the update via cache property of r.