WebIDLpedia

Clients interface

Definition

Service Workers Nightly defines Clients



[Exposed=ServiceWorker]
interface Clients {
  // The objects returned will be new instances every time
  [NewObject] Promise<(Client or undefined)> get(DOMString id);
  [NewObject] Promise<FrozenArray<Client>> matchAll(optional ClientQueryOptions options = {});
  [NewObject] Promise<WindowClient?> openWindow(USVString url);
  [NewObject] Promise<undefined> claim();
};

Methods and attributes that return objects implementing Clients

Referring IDL interfaces/dictionaries