WindowClient

WindowClient

package js-html

extends Client

Available on js

The WindowClient interface of the ServiceWorker API represents the scope of a service worker client that is a document in a browser context, controlled by an active worker. The service worker client independently selects and uses a service worker for its own loading and sub-resources.

Documentation WindowClient by Mozilla Contributors, licensed under CC-BY-SA 2.5.

See:

Variables

read only focused:Bool

A boolean that indicates whether the current client has focus.

read only visibilityState:VisibilityState

Indicates the visibility of the current client. This value can be one of hidden, visible, prerender, or unloaded.

Methods

focus ():Promise<WindowClient>

Throws:

null DOMError

© 2005–2016 Haxe Foundation
Licensed under a MIT license.
http://api.haxe.org/js/html/WindowClient.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部