Package tvi.webrtc

Interface DataChannel.Observer

Enclosing class:
DataChannel

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

    Modifier and Type
    Method
    Description
    void
    onBufferedAmountChange(long previousAmount)
    The data channel's bufferedAmount has changed.
    void
    A data buffer was successfully received.
    void
    The data channel state has changed.
  • Method Details

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