sendTransparentMessage method
- String roomID,
- ZegoRoomSendTransparentMessage message
Sends a transparent message in room.
Available since: 1.2.1
Description: Send point-to-point signaling to other users who have logged into the same room.
Use cases: Generally used for remote control signaling or message sending between users.
When to call: After calling loginRoom to log in to the room.
Restrictions: The frequency of sending barrage messages in the same room cannot be higher than 20 messages/s. For restrictions on the use of this function, please contact ZEGO technical support.
Related callbacks: When sending a message, Mode is specified for ZegoRoomTransparentMessageModeOnlyClient or ZegoRoomTransparentMessageModeClientAndServer can pass onRecvRoomTransparentMessage received sends the message content.
Privacy reminder: Please do not fill in sensitive user information in this interface, including but not limited to mobile phone number, ID number, passport number, real name, etc.
roomIDRoom ID, a string of less 128 bytes in length. Caution:- room ID is defined by yourself.
- Only support numbers, English characters and '~', '!', '@', '#', '$', '%', '^', '&', '*', '(', ')', '_', '+', '=', '-', '`', ';', '’', ',', '.', '<', '>', ''.
- If you need to communicate with the Web SDK, please do not use '%'.
messageZegoRoomSendTransparentMessage- Returns Send command result callback.
Implementation
Future<ZegoRoomSendTransparentMessageResult> sendTransparentMessage(
String roomID, ZegoRoomSendTransparentMessage message) async {
return await ZegoExpressImpl.instance
.sendTransparentMessage(roomID, message);
}