Chat SDK for Android v1.1.0
agora java chat SDK
Public Member Functions | Static Public Attributes | List of all members Class Reference
Inheritance diagram for

Public Member Functions

 CmdMessageBody (String action)
String action ()
boolean isDeliverOnlineOnly ()
void deliverOnlineOnly (boolean onlineOnly)
String toString ()
int describeContents ()
void writeToParcel (Parcel dest, int flags)

Static Public Attributes

static final Parcelable.Creator< CmdMessageBodyCREATOR

Detailed Description

The command message body.

CmdMessageBody body = new CmdMessageBody("delete", null);
CmdMessageBody(String action)

Constructor & Destructor Documentation

◆ CmdMessageBody() ( String  action)

Creates a command message.

actionThe command action content.

Member Function Documentation

◆ action()

String ( )

Gets the command action content.

The command action content.

◆ deliverOnlineOnly()

void ( boolean  onlineOnly)

Sets whether the current cmd msg is only delivered to online users.

onlineOnlyWhether to deliver to online users only.
  • (Default)false: The message is delivered to all users.
  • true: The message is delivered to the online users only, so the offline users won't receive the message when they log in later.

◆ isDeliverOnlineOnly()

boolean ( )

Checks whether this cmd message is only delivered to online users.

- true: Only delivers to online users.
  • false: Delivers to all users.

◆ toString()

String ( )

Gets and displays the content of the CMD message.

The content of the action of the CMD message.

Member Data Documentation


final Parcelable.Creator<CmdMessageBody>
Initial value:
= new Parcelable.Creator<CmdMessageBody>() {
public CmdMessageBody createFromParcel(Parcel in) {
return new CmdMessageBody(in);
public CmdMessageBody[] newArray(int size) {
return new CmdMessageBody[size];

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