Class DataChannel
java.lang.Object
com.openfin.desktop.channel.webrtc.DataChannel
- All Implemented Interfaces:
dev.onvoid.webrtc.RTCDataChannelObserver
public class DataChannel
extends java.lang.Object
implements dev.onvoid.webrtc.RTCDataChannelObserver
-
Constructor Summary
Constructors Constructor Description DataChannel(dev.onvoid.webrtc.RTCDataChannel dataChannel)
DataChannel(dev.onvoid.webrtc.RTCPeerConnection peerConnection, java.lang.String name)
-
Method Summary
Modifier and Type Method Description boolean
addChannelListener(DataChannelListener listener)
void
close()
java.lang.String
getName()
DataChannelListener.State
getState()
void
onBufferedAmountChange(long previousAmount)
void
onMessage(dev.onvoid.webrtc.RTCDataChannelBuffer rtcDataChannelBuffer)
void
onStateChange()
boolean
removeChannelListener(DataChannelListener listener)
void
send(java.lang.String s)
-
Constructor Details
-
DataChannel
public DataChannel(dev.onvoid.webrtc.RTCPeerConnection peerConnection, java.lang.String name) -
DataChannel
public DataChannel(dev.onvoid.webrtc.RTCDataChannel dataChannel)
-
-
Method Details
-
getName
public java.lang.String getName() -
getState
-
addChannelListener
-
removeChannelListener
-
send
public void send(java.lang.String s) throws java.lang.Exception- Throws:
java.lang.Exception
-
close
public void close() -
onBufferedAmountChange
public void onBufferedAmountChange(long previousAmount)- Specified by:
onBufferedAmountChange
in interfacedev.onvoid.webrtc.RTCDataChannelObserver
-
onStateChange
public void onStateChange()- Specified by:
onStateChange
in interfacedev.onvoid.webrtc.RTCDataChannelObserver
-
onMessage
public void onMessage(dev.onvoid.webrtc.RTCDataChannelBuffer rtcDataChannelBuffer)- Specified by:
onMessage
in interfacedev.onvoid.webrtc.RTCDataChannelObserver
-