RTCDataChannelNative class
A class that represents a WebRTC datachannel. Can send and receive text and binary messages.
- Inheritance
-
- Object
- RTCDataChannel
- RTCDataChannelNative
Constructors
- RTCDataChannelNative(String _peerConnectionId, String _label, int _dataChannelId)
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- label → String?
-
Get label.
no setteroverride
-
messageStream
↔ Stream<
RTCDataChannelMessage> -
Stream of incoming messages. Emits the message.
Closes when the RTCDataChannel is closed.
getter/setter pairinherited
- onDataChannelState ↔ dynamic Function(RTCDataChannelState state)?
-
getter/setter pairinherited
- onMessage ↔ dynamic Function(RTCDataChannelMessage data)?
-
getter/setter pairinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- state → RTCDataChannelState?
-
Get current state.
no setteroverride
-
stateChangeStream
↔ Stream<
RTCDataChannelState> -
Stream of state change events. Emits the new state on change.
Closes when the RTCDataChannel is closed.
getter/setter pairinherited
Methods
-
close(
) → Future< void> -
override
-
errorListener(
Object obj) → void -
eventListener(
dynamic event) → void - RTCDataChannel event listener.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
send(
RTCDataChannelMessage message) → Future< void> -
Send a message to this datachannel.
To send a text message, use the default constructor to instantiate a text RTCDataChannelMessage
for the
message
parameter. To send a binary message, pass a binary RTCDataChannelMessage constructed with RTCDataChannelMessage.fromBinaryoverride -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited