The text message body.
EMTextMessageBody(String msg)
Definition: EMTextMessageBody.java:51
◆ EMTextMessageBody()
com.hyphenate.chat.EMTextMessageBody.EMTextMessageBody |
( |
String |
msg | ) |
|
Creates a text message body.
- Parameters
-
◆ getMessage()
String com.hyphenate.chat.EMTextMessageBody.getMessage |
( |
| ) |
|
Gets the text message body.
- Returns
- The text content.
◆ getTargetLanguages()
List< String > com.hyphenate.chat.EMTextMessageBody.getTargetLanguages |
( |
| ) |
|
Get the target language for translation
- Returns
- Language code list
◆ getTranslations()
List< EMTranslationInfo > com.hyphenate.chat.EMTextMessageBody.getTranslations |
( |
| ) |
|
Get the translation list
- Returns
- Translation information list
◆ setMessage()
void com.hyphenate.chat.EMTextMessageBody.setMessage |
( |
String |
message | ) |
|
Sets the text message body's content. @Note: you can only modify the local data.
- Parameters
-
◆ setTargetLanguages()
void com.hyphenate.chat.EMTextMessageBody.setTargetLanguages |
( |
List< String > |
languageList | ) |
|
Set the target language for translation
- Parameters
-
languageList | Language code list |
The documentation for this class was generated from the following file:
- com/hyphenate/chat/EMTextMessageBody.java