DataChannel.Observer

tee3.webrtc

## 接口 DataChannel.Observer

- 封闭类:
    DataChannel

      public static interface DataChannel.Observer

  Java version of C++ DataChannelObserver.

- - ### 方法概要

    所有方法 实例方法 抽象方法
    限定符和类型 | 方法和说明
    --- | ---
    `void` | `onBufferedAmountChange(long previousAmount)` The data channel's bufferedAmount has changed.
    `void` | `onMessage(DataChannel.Buffer buffer)` A data buffer was successfully received.
    `void` | `onStateChange()` The data channel state has changed.

- - ### 方法详细资料

    - #### onBufferedAmountChange

          void onBufferedAmountChange(long previousAmount)

      The data channel's bufferedAmount has changed.

    - #### onStateChange

          void onStateChange()

      The data channel state has changed.

    - #### onMessage

          void onMessage(DataChannel.Buffer buffer)

      A data buffer was successfully received. NOTE: |buffer.data| will be freed once this function returns so callers who want to use the data asynchronously must make sure to copy it first.