All Downloads are FREE. Search and download functionalities are using the official Maven repository.

elemental2.dom.ExtendableMessageEvent Maven / Gradle / Ivy

The newest version!
package elemental2.dom;
import elemental2.dom.MessagePort;
import elemental2.dom.ExtendableMessageEventInit;
import elemental2.core.JsArray;
import jsinterop.base.Js;
import elemental2.dom.ServiceWorkerClient;
import elemental2.dom.ExtendableEventInit;
import jsinterop.annotations.JsOverlay;
import elemental2.dom.ServiceWorker;
import java.lang.Object;
import java.lang.String;
import jsinterop.annotations.JsType;
import jsinterop.annotations.JsPackage;
import elemental2.dom.ExtendableEvent;
@JsType(isNative = true,namespace = JsPackage.GLOBAL)
public class ExtendableMessageEvent extends ExtendableEvent{
@JsType(isNative = true,name = "?",namespace = JsPackage.GLOBAL)
public interface SourceUnionType{
@JsOverlay
static ExtendableMessageEvent.SourceUnionType of(Object o){
return Js.cast(o);
}
@JsOverlay
default MessagePort asMessagePort(){
return Js.cast(this);
}
@JsOverlay
default ServiceWorker asServiceWorker(){
return Js.cast(this);
}
@JsOverlay
default ServiceWorkerClient asServiceWorkerClient(){
return Js.cast(this);
}
@JsOverlay
default boolean isMessagePort(){
return (Object)this instanceof MessagePort;
}
@JsOverlay
default boolean isServiceWorker(){
return (Object)this instanceof ServiceWorker;
}
@JsOverlay
default boolean isServiceWorkerClient(){
return (Object)this instanceof ServiceWorkerClient;
}
}
public T data;
public String lastEventId;
public String origin;
public JsArray ports;
public ExtendableMessageEvent.SourceUnionType source;
public ExtendableMessageEvent(String type,ExtendableMessageEventInit eventInitDict){
// This super call is here only for the code to compile; it is never executed.
super((String)null,(ExtendableEventInit)null);
}
public ExtendableMessageEvent(String type){
// This super call is here only for the code to compile; it is never executed.
super((String)null,(ExtendableEventInit)null);
}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy