DtmfSender

tee3.webrtc

## 类 DtmfSender

- java.lang.Object
- - tee3.webrtc.DtmfSender

-     public class DtmfSender
      extends java.lang.Object

  Java wrapper for a C++ DtmfSenderInterface.

- - ### 构造器概要

    构造器
    构造器和说明
    `DtmfSender(long nativeDtmfSender)`

  - ### 方法概要

    所有方法 实例方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `boolean` | `canInsertDtmf()`
    `void` | `dispose()`
    `int` | `duration()`
    `boolean` | `insertDtmf(java.lang.String tones, int duration, int interToneGap)` Queues a task that sends the provided DTMF tones.
    `int` | `interToneGap()`
    `java.lang.String` | `tones()`

    - ### 从类继承的方法 java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### 构造器详细资料

    - #### DtmfSender

          public DtmfSender(long nativeDtmfSender)

  - ### 方法详细资料

    - #### canInsertDtmf

          public boolean canInsertDtmf()

      返回:
        true if this DtmfSender is capable of sending DTMF. Otherwise false.

    - #### insertDtmf

          public boolean insertDtmf(java.lang.String tones,
                                    int duration,
                                    int interToneGap)

      Queues a task that sends the provided DTMF tones.

      If insertDtmf is called on the same object while an existing task for this object to generate DTMF is still running, the previous task is canceled.

      参数:
        `tones` - This parameter is treated as a series of characters. The characters 0 through 9, A through D, #, and * generate the associated DTMF tones. The characters a to d are equivalent to A to D. The character ',' indicates a delay of 2 seconds before processing the next character in the tones parameter. Unrecognized characters are ignored.
        `duration` - Indicates the duration in ms to use for each character passed in the tones parameter. The duration cannot be more than 6000 or less than 70.
        `interToneGap` - Indicates the gap between tones in ms. Must be at least 50 ms but should be as short as possible.
      返回:
        true on success and false on failure.

    - #### tones

          public java.lang.String tones()

      返回:
        The tones remaining to be played out

    - #### duration

          public int duration()

      返回:
        The current tone duration value in ms. This value will be the value last set via the insertDtmf() method, or the default value of 100 ms if insertDtmf() was never called.

    - #### interToneGap

          public int interToneGap()

      返回:
        The current value of the between-tone gap in ms. This value will be the value last set via the insertDtmf() method, or the default value of 50 ms if insertDtmf() was never called.

    - #### dispose

          public void dispose()