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

js.web.webrtc.RTCDataChannelEvent Maven / Gradle / Ivy

package js.web.webrtc;

import js.web.dom.Event;
import org.teavm.jso.JSBody;
import org.teavm.jso.JSProperty;


public interface RTCDataChannelEvent extends Event {
    @JSBody(script = "return RTCDataChannelEvent.prototype")
    static RTCDataChannelEvent prototype() {
        throw new UnsupportedOperationException("Available only in JavaScript");
    }

    @JSBody(params = {"type", "eventInitDict"}, script = "return new RTCDataChannelEvent(type, eventInitDict)")
    static RTCDataChannelEvent create(String type, RTCDataChannelEventInit eventInitDict) {
        throw new UnsupportedOperationException("Available only in JavaScript");
    }

    @JSBody(params = "type", script = "return new RTCDataChannelEvent(type)")
    static RTCDataChannelEvent create(String type) {
        throw new UnsupportedOperationException("Available only in JavaScript");
    }

    @JSProperty
    RTCDataChannel getChannel();


    interface RTCDataChannelEventInit extends EventInit {
        @JSProperty
        RTCDataChannel getChannel();

        @JSProperty
        void setChannel(RTCDataChannel channel);

    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy