elemental2.dom.ServiceWorkerClients Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jacline-elemental2-dom Show documentation
Show all versions of jacline-elemental2-dom Show documentation
Thin Java abstractions for the standard built-in objects for
Javascript.
The newest version!
package elemental2.dom;
import java.lang.Void;
import elemental2.dom.URL;
import elemental2.dom.ServiceWorkerClientQueryOptions;
import elemental2.promise.Promise;
import elemental2.core.JsArray;
import jsinterop.base.Js;
import elemental2.dom.ServiceWorkerClient;
import jsinterop.annotations.JsOverlay;
import java.lang.Object;
import java.lang.String;
import jsinterop.annotations.JsType;
import jsinterop.annotations.JsPackage;
@JsType(isNative = true,namespace = JsPackage.GLOBAL)
public interface ServiceWorkerClients{
@JsType(isNative = true,name = "?",namespace = JsPackage.GLOBAL)
public interface OpenWindowUrlUnionType{
@JsOverlay
static ServiceWorkerClients.OpenWindowUrlUnionType of(Object o){
return Js.cast(o);
}
@JsOverlay
default String asString(){
return Js.asString(this);
}
@JsOverlay
default URL asURL(){
return Js.cast(this);
}
@JsOverlay
default boolean isString(){
return (Object)this instanceof String;
}
@JsOverlay
default boolean isURL(){
return (Object)this instanceof URL;
}
}
Promise claim();
Promise get(String id);
Promise> getAll();
Promise> getAll(ServiceWorkerClientQueryOptions options);
Promise> matchAll();
Promise> matchAll(ServiceWorkerClientQueryOptions options);
Promise openWindow(ServiceWorkerClients.OpenWindowUrlUnionType url);
@JsOverlay
default Promise openWindow(String url){
return openWindow(Js.uncheckedCast(url));
}
@JsOverlay
default Promise openWindow(URL url){
return openWindow(Js.uncheckedCast(url));
}
}