Package io.rong.message
Class TextMessage
-
- All Implemented Interfaces:
public class TextMessage
Text Message
Text message, which will be stored and counted as unread messages.
-
-
Constructor Summary
Constructors Constructor Description TextMessage(String content)
Constructor. TextMessage(Array<byte> data)
TextMessage(Parcel in)
Constructor.
-
Method Summary
Modifier and Type Method Description String
getContent()
Retrieves the content of the text message. void
setContent(String content)
Set the content of the text message. static TextMessage
obtain(String text)
Array<byte>
encode()
Serializes the local message object into message data. void
writeToParcel(Parcel dest, int flags)
Writes the class's data into the provided Parcel. int
describeContents()
Describes the type of special objects included in the arrangement information of the Parcelable object. List<String>
getSearchableWord()
String
toString()
-
-
Constructor Detail
-
TextMessage
TextMessage(String content)
Constructor.- Parameters:
content
- The content of the text message.
-
TextMessage
TextMessage(Array<byte> data)
-
TextMessage
TextMessage(Parcel in)
Constructor.- Parameters:
in
- The Parcel passed during initialization.
-
-
Method Detail
-
getContent
String getContent()
Retrieves the content of the text message.
- Returns:
The content of the text message.
-
setContent
void setContent(String content)
Set the content of the text message.
- Parameters:
content
- The content of the text message.
-
obtain
static TextMessage obtain(String text)
-
encode
Array<byte> encode()
Serializes the local message object into message data.
- Returns:
The message data.
-
writeToParcel
void writeToParcel(Parcel dest, int flags)
Writes the class's data into the provided Parcel.
- Parameters:
dest
- The Parcel into which the object is written.flags
- Additional flags about how the object should be written, can be 0 or PARCELABLE_WRITE_RETURN_VALUE.
-
describeContents
int describeContents()
Describes the type of special objects included in the arrangement information of the Parcelable object.
- Returns:
A flag indicating the arrangement of the special object type collection of the Parcelable object.
-
getSearchableWord
List<String> getSearchableWord()
-
toString
String toString()
-
-
-
-