#import <EMChatMessage.h>
Gets the Reaction content by the Reaction ID.
- Parameters
-
- Returns
- The Reaction content.
- (instancetype _Nonnull) initWithConversationID: |
|
(NSString *_Nonnull) |
aConversationId |
body: |
|
(EMMessageBody *_Nonnull) |
aBody |
ext: |
|
(NSDictionary *_Nullable) |
aExt |
|
|
| |
Initializes a message instance.
- Parameters
-
aConversationId | The conversation ID. |
aBody | The message body. |
aExt | The message extention. |
- Returns
- The message instance.
- (instancetype _Nonnull) initWithConversationID: |
|
(NSString *_Nonnull) |
aConversationId |
from: |
|
(NSString *_Nonnull) |
aFrom |
to: |
|
(NSString *_Nonnull) |
aTo |
body: |
|
(EMMessageBody *_Nonnull) |
aBody |
ext: |
|
(NSDictionary *_Nullable) |
aExt |
|
|
| |
Initializes a message instance.
- Parameters
-
aConversationId | The conversation ID. |
aFrom | The user that sends the message. |
aTo | The user that receives the message. |
aBody | The message body. |
aExt | The message extention. |
- Returns
- The message instance.
Whether it is a broadcast message
Gets an overview of the thread in the message.
Currently, this attribute is valid only for group messages.
- (NSString* _Nonnull) conversationId |
|
readwritenonatomiccopy |
The conversation ID, which is the unique identifier of the conversation.
- (BOOL) deliverOnlineOnly |
|
readwritenonatomicassign |
Whether the message is delivered only when the recipient(s) is/are online:
YES
:The message is delivered only when the recipient(s) is/are online. If the recipient is offline, the message is not delivered.
- (Default)
NO
:The message is delivered to the recipients regardless of whether they are online or offline.
- (EMMessageDirection) direction |
|
readwritenonatomicassign |
The message delivery direction.
- (NSDictionary* _Nullable) ext |
|
readwritenonatomiccopy |
The custom message extension.
This data is in the key-value format, where the key is the extension field name of the NSString type, and the value must be of the NSString or NSNumber (Bool, Int, unsigned int, long long, double) type.
- (NSString* _Nonnull) from |
|
readwritenonatomiccopy |
The user sending the message.
The number of read receipts received for group messages.
- (BOOL) isChatThreadMessage |
|
readwritenonatomicassign |
Whether this message is sent within a thread:
- (BOOL) isContentReplaced |
|
readnonatomicassign |
Whether the message content has been replaced by server.This property is used only when EMOptions::useReplacedMessageContent is true.
Whether the delivery receipt is sent or received:
For the message sender, this attribute indicates whether the delivery receipt is received.
For the message recipient, this attribute indicates whether the delivery receipt is sent.
If you set enableDeliveryAck
in EMOptions
as YES
, the SDK automatically sends the delivery receipt after receiving a message.
Whether the voice message is played.
Whether read receipts are required for group messages.
Whether the message is read.
Whether the message read receipt is sent (from the message recipient) or received (by the message sender).
The Unix timestamp for the local client sending or receiving the message.
The unit is millisecond.
- (NSString* _Nonnull) messageId |
|
readwritenonatomiccopy |
The message ID, which is the unique identifier of the message.
Whether the message is an online message:
YES
: online message.
NO
: offline message.
This message status is not stored in the local database.
Messages read from the database or pulled from the server are regarded as online.
The message pinning information.
For a message that is not pinned, nil is returned.
- (EMChatRoomMessagePriority) priority |
|
readwritenonatomicassign |
Sets the priority of a chat room message.
Currently, this attribute is valid only for chat room messages.
The default value is normal
, indicating the normal priority.
- (NSArray<NSString*>* _Nullable) receiverList |
|
readwritenonatomicstrong |
The recipient list of a targeted message.
This property is used only for messages in groups and chat rooms. If you pass in nil
, the messages are sent to all members in the group or chat room.
- (EMMessageStatus) status |
|
readwritenonatomicassign |
The Unix timestamp for the chat server receiving the message.
The unit is second.
- (NSString* _Nonnull) to |
|
readwritenonatomiccopy |
The user receiving the message.
The documentation for this class was generated from the following file: