Clients

Clients

package js-html

Available on js

The Clients interface of the Service Workers API represents a container for a list of Client objects.

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

See:

Methods

claim ():Promise<Void>

Allows an active Service Worker to set itself as the active worker for a client page when the worker and the page are in the same scope.

get (id:String):Promise<Dynamic>

Gets a service worker client matching a given id and returns it in a Promise.

matchAll (?options:ClientQueryOptions):Promise<Array<Client>>

Gets a list of service worker clients and returns them in a Promise. Include the options parameter to return all service worker clients whose origin is the same as the associated service worker's origin. If options are not included, the method returns only the service worker clients controlled by the service worker.

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

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部