Created
June 29, 2022 07:10
-
-
Save larryluoo/5b52805bcabe2d1355b63e630cc6fd08 to your computer and use it in GitHub Desktop.
sendTextMessage
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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