streamMessage property Null safety

StreamMessageCallback? streamMessage
read / write

Occurs when the local user receives a remote data stream.

The SDK triggers this callback when the local user receives the stream message that the remote user sends by calling the RtcChannel.sendStreamMessage method.

The StreamMessageCallback typedef includes the following parameters:

  • int uid: User ID of the remote user sending the data stream.
  • int streamId: Stream ID.
  • String data: Data received by the local user.

Implementation

StreamMessageCallback? streamMessage;