- Enclosing class:
public static interface DataChannel.Observer
Java version of C++ DataChannelObserver.
(long previousAmount)The data channel's bufferedAmount has changed.
onStateChangevoid onStateChange()The data channel state has changed.
(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.