#import <EMChatMessage.h>
◆ getReaction:
Gets the Reaction content by the Reaction ID.
- Parameters
-
- Returns
- The Reaction content.
◆ initWithConversationID:body:ext:
- (id _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.
◆ initWithConversationID:from:to:body:ext:
- (id _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.
◆ body
◆ chatThread
Gets an overview of the thread in the message.
Currently, this attribute is valid only for group messages.
◆ chatType
◆ conversationId
- (NSString* _Nonnull) conversationId |
|
readwritenonatomiccopy |
The conversation ID, which is the unique identifier of the conversation.
◆ direction
- (EMMessageDirection) direction |
|
readwritenonatomicassign |
The message delivery direction.
◆ ext
- (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.
◆ from
- (NSString* _Nonnull) from |
|
readwritenonatomiccopy |
The user sending the message.
◆ groupAckCount
The number of read receipts received for group messages.
◆ isChatThreadMessage
- (BOOL) isChatThreadMessage |
|
readwritenonatomicassign |
Whether this message is sent within a thread:
◆ isDeliverAcked
Whether the delivery receipt is sent or received:
For the message sender, this property indicates whether the delivery receipt is received.
For the message recipient, this property 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.
◆ isListened
Whether the voice message is played.
◆ isNeedGroupAck
Whether read receipts are required for group messages.
◆ isRead
Whether the message is read.
◆ isReadAcked
Whether the message read receipt is sent (from the message recipient) or received (by the message sender).
◆ localTime
The Unix timestamp for the local client sending or receiving the message.
The unit is millisecond.
◆ messageId
- (NSString* _Nonnull) messageId |
|
readwritenonatomiccopy |
The message ID, which is the unique identifier of the message.
◆ onlineState
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.
◆ priority
- (EMChatRoomMessagePriority) priority |
|
readwritenonatomicassign |
Sets the delivery priority of a chat room message.
Currently, this attribute is valid only for chat room messages.
The default value is normal
.
◆ reactionList
◆ status
- (EMMessageStatus) status |
|
readwritenonatomicassign |
◆ timestamp
The Unix timestamp for the chat server receiving the message.
The unit is second.
◆ to
- (NSString* _Nonnull) to |
|
readwritenonatomiccopy |
The user receiving the message.
The documentation for this class was generated from the following file: