-
public interface RTCDataChannelObserverUsed to receive events from theRTCDataChannel.- Author:
- Alex Andres
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidonBufferedAmountChange(long previousAmount)The RTCDataChannel's buffered amount has changed.voidonMessage(RTCDataChannelBuffer buffer)A data buffer was successfully received.voidonStateChange()The RTCDataChannel's state has changed.
-
-
-
Method Detail
-
onBufferedAmountChange
void onBufferedAmountChange(long previousAmount)
The RTCDataChannel's buffered amount has changed.- Parameters:
previousAmount- The previous buffer amount.
-
onStateChange
void onStateChange()
The RTCDataChannel's state has changed.
-
onMessage
void onMessage(RTCDataChannelBuffer buffer)
A data buffer was successfully received.NOTE:
RTCDataChannelBuffer.datawill be freed once this function returns so observers who want to use the data asynchronously must make sure to copy it first.- Parameters:
buffer- The buffer containing the received message.
-
-