Liking cljdoc? Tell your friends :D

web.service-workers.WindowClient

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.
raw docstring

focuscljs

(focus this & args)

Method.

The focus() method of the web.service-workers.WindowClient gives user input focus to the current client and returns a js.Promise resolves to the existing web.service-workers.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.service-workers.WindowClient`
gives user input focus to the current client and returns a `js.Promise`
resolves to the existing `web.service-workers.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`
sourceraw docstring

focusedcljs

(focused this)

Property.

[Read Only]

The focused read-only property of the web.service-workers.WindowClient is a js.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.

[Read Only]

The focused read-only property of the `web.service-workers.WindowClient`
is a `js.Boolean` that indicates whether the current client has

`myFocused = WindowClient.focused;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/WindowClient/focused`
sourceraw docstring

(navigate this & args)

Method.

The navigate() method of the web.service-workers.WindowClient loads a specified URL into a controlled client page then returns js.Promise that resolves to the existing web.service-workers.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.service-workers.WindowClient`
loads a specified URL into a controlled client page then returns
`js.Promise` that resolves to the existing `web.service-workers.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`
sourceraw docstring

visibility-statecljs

(visibility-state this)

Property.

[Read Only]

The visibilityState read-only property of the web.service-workers.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.

[Read Only]

The visibilityState read-only property of the `web.service-workers.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`
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close