@Generated(value="org.realityforge.webtack")
@JsType(isNative=true,
namespace="<global>",
name="Clients")
public class Clients
extends JsObject
| Modifier | Constructor and Description |
|---|---|
protected |
Clients() |
| Modifier and Type | Method and Description |
|---|---|
@JsNonNull Promise<java.lang.Void> |
claim()
The claim() method of the Clients interface allows an active service worker to set itself as the controller for all clients within its scope.
|
@JsNonNull Promise<ClientOrUndefinedUnion> |
get(java.lang.String id)
The get() method of the Clients interface gets a service worker client matching a given id and returns it in a Promise.
|
@JsNonNull Promise<JsArray<Client>> |
matchAll()
The matchAll() method of the Clients interface returns a Promise for a list of service worker Client objects.
|
@JsNonNull Promise<JsArray<Client>> |
matchAll(ClientQueryOptions options)
The matchAll() method of the Clients interface returns a Promise for a list of service worker Client objects.
|
@JsNonNull Promise<WindowClient> |
openWindow(java.lang.String url)
The openWindow() method of the Clients interface creates a new top level browsing context and loads a given URL.
|
assign, create, create, defineProperties, defineProperty, defineProperty, entries, freeze, fromEntries, getOwnPropertyDescriptor, getOwnPropertyDescriptor, getOwnPropertyDescriptors, getOwnPropertyNames, getOwnPropertySymbols, getPrototypeOf, hasOwnProperty, hasOwnProperty, is, isExtensible, isFrozen, isPrototypeOf, isSealed, keys, preventExtensions, propertyIsEnumerable, seal, setPrototypeOf, toString_, valueOf_, valuespublic @JsNonNull Promise<java.lang.Void> claim()
public @JsNonNull Promise<ClientOrUndefinedUnion> get(@Nonnull java.lang.String id)
public @JsNonNull Promise<JsArray<Client>> matchAll(@Nonnull ClientQueryOptions options)
public @JsNonNull Promise<JsArray<Client>> matchAll()
public @JsNonNull Promise<WindowClient> openWindow(@Nonnull java.lang.String url)