Skip to content

Instantly share code, notes, and snippets.

@larryluoo
Created June 29, 2022 07:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save larryluoo/5b52805bcabe2d1355b63e630cc6fd08 to your computer and use it in GitHub Desktop.
Save larryluoo/5b52805bcabe2d1355b63e630cc6fd08 to your computer and use it in GitHub Desktop.
sendTextMessage
/**
* Send IM text message.
* <p>Description: This method can be used to send IM text message, and all users in the room will receive the
* message notification.</>
* <p>Call this method at: After joining the room</>
*
* @param text refers to the text message content, which is limited to 1kb.
* @param callback refers to the callback for send text messages.
*/
ZegoRoomManager.getInstance().messageService.sendTextMessage("YOUR_MESSAGE", new ZegoRoomCallback() {
@Override
public void roomCallback(int errorCode) {
// Callback for the result of send a message.
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment