The WindowClient interface of the ServiceWorker API represents scope of a service worker client that is a document in a browser controlled by an active worker. The service worker client independently and uses a service worker for its own loading and sub-resources.
The WindowClient interface of the ServiceWorker API represents scope of a service worker client that is a document in a browser controlled by an active worker. The service worker client independently and uses a service worker for its own loading and sub-resources.
(focus this & args)
Method.
The focus() method of the web.WindowClient
interface gives
input focus to the current client and returns a web.Promise
resolves to the existing web.WindowClient
.
Client.focus().then(function(WindowClient) { // do something with your WindowClient once it has been focused });
See also: https://developer.mozilla.org/en-US/docs/Web/API/WindowClient/focus
Method. The focus() method of the `web.WindowClient` interface gives input focus to the current client and returns a `web.Promise` resolves to the existing `web.WindowClient`. `Client.focus().then(function(WindowClient) { // do something with your WindowClient once it has been focused });` See also: `https://developer.mozilla.org/en-US/docs/Web/API/WindowClient/focus`
(focused this)
Property.
The focused read-only property of the web.WindowClient
interface
a web.Boolean
that indicates whether the current client has
myFocused = WindowClient.focused;
See also: https://developer.mozilla.org/en-US/docs/Web/API/WindowClient/focused
Property. The focused read-only property of the `web.WindowClient` interface a `web.Boolean` that indicates whether the current client has `myFocused = WindowClient.focused;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/WindowClient/focused`
(navigate this & args)
Method.
The navigate() method of the web.WindowClient
interface loads
specified URL into a controlled client page then returns a web.Promise
resolves to the existing web.WindowClient
.
WindowClient.navigate(url).then(function(WindowClient) { // do something with your WindowClient after navigation });
See also: https://developer.mozilla.org/en-US/docs/Web/API/WindowClient/navigate
Method. The navigate() method of the `web.WindowClient` interface loads specified URL into a controlled client page then returns a `web.Promise` resolves to the existing `web.WindowClient`. `WindowClient.navigate(url).then(function(WindowClient) { // do something with your WindowClient after navigation });` See also: `https://developer.mozilla.org/en-US/docs/Web/API/WindowClient/navigate`
(set-focused! this val)
Property.
The focused read-only property of the web.WindowClient
interface
a web.Boolean
that indicates whether the current client has
myFocused = WindowClient.focused;
See also: https://developer.mozilla.org/en-US/docs/Web/API/WindowClient/focused
Property. The focused read-only property of the `web.WindowClient` interface a `web.Boolean` that indicates whether the current client has `myFocused = WindowClient.focused;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/WindowClient/focused`
(set-visibility-state! this val)
Property.
The visibilityState read-only property of the web.WindowClient
indicates the visibility of the current client. This value can
one of hidden, visible, prerender, or unloaded.
myVisState = WindowClient.visibilityState;
See also: https://developer.mozilla.org/en-US/docs/Web/API/WindowClient/visibilityState
Property. The visibilityState read-only property of the `web.WindowClient` indicates the visibility of the current client. This value can one of hidden, visible, prerender, or unloaded. `myVisState = WindowClient.visibilityState;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/WindowClient/visibilityState`
(visibility-state this)
Property.
The visibilityState read-only property of the web.WindowClient
indicates the visibility of the current client. This value can
one of hidden, visible, prerender, or unloaded.
myVisState = WindowClient.visibilityState;
See also: https://developer.mozilla.org/en-US/docs/Web/API/WindowClient/visibilityState
Property. The visibilityState read-only property of the `web.WindowClient` indicates the visibility of the current client. This value can one of hidden, visible, prerender, or unloaded. `myVisState = WindowClient.visibilityState;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/WindowClient/visibilityState`
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close