Package tvi.webrtc

Interface DataChannel.Observer

  • Enclosing class:
    DataChannel

    public static interface DataChannel.Observer
    Java version of C++ DataChannelObserver.
    • Method Detail

      • 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.