Package com.viam.sdk.java.webrtc
Class DataChannel
java.lang.Object
com.viam.sdk.java.webrtc.DataChannel
- All Implemented Interfaces:
DataChannel
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.viam.sdk.core.webrtc.DataChannel
DataChannel.Buffer, DataChannel.Init, DataChannel.Observer, DataChannel.State
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
void
registerObserver
(DataChannel.Observer observer) void
send
(DataChannel.Buffer message) state()
void
-
Constructor Details
-
DataChannel
public DataChannel(dev.onvoid.webrtc.RTCDataChannel nativeDataChannel)
-
-
Method Details
-
registerObserver
- Specified by:
registerObserver
in interfaceDataChannel
-
unregisterObserver
public void unregisterObserver()- Specified by:
unregisterObserver
in interfaceDataChannel
-
send
- Specified by:
send
in interfaceDataChannel
-
close
public void close()- Specified by:
close
in interfaceDataChannel
-
state
- Specified by:
state
in interfaceDataChannel
-