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

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

package js.web.webrtc;

import js.web.dom.AddEventListenerOptions;
import js.web.dom.EventListener;
import js.web.dom.EventListenerOptions;
import js.web.dom.EventTarget;
import org.teavm.jso.JSBody;
import org.teavm.jso.JSProperty;

import javax.annotation.Nullable;

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

    @JSBody(script = "return new RTCDTMFSender()")
    static RTCDTMFSender create() {
        throw new UnsupportedOperationException("Available only in JavaScript");
    }

    @JSProperty
    boolean isCanInsertDTMF();

    @JSProperty
    @Nullable
    EventListener getOntonechange();

    @JSProperty
    void setOntonechange(EventListener ontonechange);

    default void addToneChangeEventListener(EventListener listener, AddEventListenerOptions options) {
        addEventListener("tonechange", listener, options);
    }

    default void addToneChangeEventListener(EventListener listener, boolean options) {
        addEventListener("tonechange", listener, options);
    }

    default void addToneChangeEventListener(EventListener listener) {
        addEventListener("tonechange", listener);
    }

    default void removeToneChangeEventListener(EventListener listener, EventListenerOptions options) {
        removeEventListener("tonechange", listener, options);
    }

    default void removeToneChangeEventListener(EventListener listener, boolean options) {
        removeEventListener("tonechange", listener, options);
    }

    default void removeToneChangeEventListener(EventListener listener) {
        removeEventListener("tonechange", listener);
    }

    @JSProperty
    String getToneBuffer();

    void insertDTMF(String tones, double duration, double interToneGap);

    void insertDTMF(String tones, double duration);

    void insertDTMF(String tones);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy