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

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

package js.web.webrtc;

import js.util.collections.Array;
import js.web.dom.AddEventListenerOptions;
import js.web.dom.Event;
import js.web.dom.EventListener;
import js.web.dom.EventListenerOptions;
import org.teavm.jso.JSBody;
import org.teavm.jso.JSProperty;

import javax.annotation.Nullable;

/**
 * Created by Artem Godin on 1/22/2020.
 */
public interface RTCIceGatherer extends RTCStatsProvider {
    @JSBody(script = "return RTCIceGatherer.prototype")
    static RTCIceGatherer prototype() {
        throw new UnsupportedOperationException("Available only in JavaScript");
    }

    @JSBody(params = "options", script = "return new RTCIceGatherer(options)")
    static RTCIceGatherer create(RTCIceGatherOptions options) {
        throw new UnsupportedOperationException("Available only in JavaScript");
    }

    @JSProperty
    RTCIceComponent getComponent();

    @JSProperty
    @Nullable
    EventListener getOnerror();

    @JSProperty
    void setOnerror(EventListener onerror);

    default void addErrorEventListener(EventListener listener, AddEventListenerOptions options) {
        addEventListener("error", listener, options);
    }

    default void addErrorEventListener(EventListener listener, boolean options) {
        addEventListener("error", listener, options);
    }

    default void addErrorEventListener(EventListener listener) {
        addEventListener("error", listener);
    }

    default void removeErrorEventListener(EventListener listener, EventListenerOptions options) {
        removeEventListener("error", listener, options);
    }

    default void removeErrorEventListener(EventListener listener, boolean options) {
        removeEventListener("error", listener, options);
    }

    default void removeErrorEventListener(EventListener listener) {
        removeEventListener("error", listener);
    }

    @JSProperty
    @Nullable
    EventListener getOnlocalcandidate();

    @JSProperty
    void setOnlocalcandidate(EventListener onlocalcandidate);

    default void addLocalCandidateEventListener(EventListener listener, AddEventListenerOptions options) {
        addEventListener("localcandidate", listener, options);
    }

    default void addLocalCandidateEventListener(EventListener listener, boolean options) {
        addEventListener("localcandidate", listener, options);
    }

    default void addLocalCandidateEventListener(EventListener listener) {
        addEventListener("localcandidate", listener);
    }

    default void removeLocalCandidateEventListener(EventListener listener, EventListenerOptions options) {
        removeEventListener("localcandidate", listener, options);
    }

    default void removeLocalCandidateEventListener(EventListener listener, boolean options) {
        removeEventListener("localcandidate", listener, options);
    }

    default void removeLocalCandidateEventListener(EventListener listener) {
        removeEventListener("localcandidate", listener);
    }

    RTCIceGatherer createAssociatedGatherer();

    Array getLocalCandidates();

    RTCIceParameters getLocalParameters();

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy