agora_chat_SDK  3.8.2
agorajavachatSDK
Public Member Functions | Static Public Attributes | List of all members
io.agora.chat.TextMessageBody Class Reference
Inheritance diagram for io.agora.chat.TextMessageBody:
io.agora.chat.MessageBody

Public Member Functions

 TextMessageBody (String msg)
 
String getMessage ()
 
void setMessage (String message)
 
String toString ()
 
int describeContents ()
 
void writeToParcel (Parcel dest, int flags)
 

Static Public Attributes

static final Parcelable.Creator< TextMessageBodyCREATOR
 

Detailed Description

Text message body

    TextMessageBody body = new TextMessageBody("hello hyphenate chat sdk!");

Constructor & Destructor Documentation

io.agora.chat.TextMessageBody.TextMessageBody ( String  msg)

Create a text message body

Parameters
msgtext content

Member Function Documentation

String io.agora.chat.TextMessageBody.getMessage ( )

Get text message body

Returns
content
void io.agora.chat.TextMessageBody.setMessage ( String  message)

Set text message body's content Note: modify local data only

Parameters
messageText content

Member Data Documentation

final Parcelable.Creator<TextMessageBody> io.agora.chat.TextMessageBody.CREATOR
static
Initial value:
= new Parcelable.Creator<TextMessageBody>() {
public TextMessageBody createFromParcel(Parcel in) {
return new TextMessageBody(in);
}
public TextMessageBody[] newArray(int size) {
return new TextMessageBody[size];
}
}

The documentation for this class was generated from the following file: