AgoraChatSDK 1.2.0
Instance Methods | List of all members
<AgoraChatManagerDelegate> Protocol Reference

#import <AgoraChatManagerDelegate.h>

Inheritance diagram for <AgoraChatManagerDelegate>:

Instance Methods

(void) - conversationListDidUpdate:
 
(void) - messagesDidReceive:
 
(void) - cmdMessagesDidReceive:
 
(void) - messagesDidRead:
 
(void) - groupMessageDidRead:groupAcks:
 
(void) - groupMessageAckHasChanged
 
(void) - onConversationRead:to:
 
(void) - messagesDidDeliver:
 
(void) - messagesInfoDidRecall:
 
(void) - messageStatusDidChange:error:
 
(void) - messageAttachmentStatusDidChange:error:
 
(void) - onMessageContentChanged:operatorId:operationTime:
 
(void) - messagesDidRecall:
 
(void) - messageReactionDidChange:
 

Detailed Description

The chat related callbacks.

Method Documentation

◆ cmdMessagesDidReceive:

- (void) cmdMessagesDidReceive: (NSArray< AgoraChatMessage * > *_Nonnull)  aCmdMessages
optional

Occurs when receiving command messages.

Parameters
aCmdMessagesThe command message NSArray.

◆ conversationListDidUpdate:

- (void) conversationListDidUpdate: (NSArray< AgoraChatConversation * > *_Nonnull)  aConversationList
optional

Occurs when the conversation list changes.

Parameters
aConversationListThe conversation NSArray. <AgoraChatConversation>

◆ groupMessageAckHasChanged

- (void) groupMessageAckHasChanged
optional

Occurs when the current group read messages count changed.

◆ groupMessageDidRead:groupAcks:

- (void) groupMessageDidRead: (AgoraChatMessage *_Nonnull)  aMessage
groupAcks: (NSArray< AgoraChatGroupMessageAck * > *_Nonnull)  aGroupAcks 
optional

Occurs when the SDK receives read receipts for group messages.

Parameters
aMessagesThe acknowledged message NSArray.

◆ messageAttachmentStatusDidChange:error:

- (void) messageAttachmentStatusDidChange: (AgoraChatMessage *_Nonnull)  aMessage
error: (AgoraChatError *_Nullable)  aError 
optional

Occurs when the message attachment status changed.

Parameters
aMessageThe message whose attachment status has changed.
aErrorThe error information.

◆ messageReactionDidChange:

- (void) messageReactionDidChange: (NSArray< AgoraChatMessageReactionChange * > *_Nonnull)  changes
optional

Occurs when the Reaction data changes.

Parameters
changesThe Reaction which is changed.

◆ messagesDidDeliver:

- (void) messagesDidDeliver: (NSArray< AgoraChatMessage * > *_Nonnull)  aMessages
optional

Occurs when receiving delivered acknowledgement in message list.

Parameters
aMessagesThe acknowledged message NSArray.

◆ messagesDidRead:

- (void) messagesDidRead: (NSArray< AgoraChatMessage * > *_Nonnull)  aMessages
optional

Occurs when receiving read acknowledgement in message list.

Parameters
aMessagesThe read messages.

◆ messagesDidRecall:

- (void) messagesDidRecall: ("Use -messagesInfoDidRecall: instead")  __deprecated_msg
optional

Occurs when a received message is recalled.

Parameters
aMessagesThe list of recalled messages.

Deprecated. Please use messagesInfoDidRecall: instead.

◆ messagesDidReceive:

- (void) messagesDidReceive: (NSArray< AgoraChatMessage * > *_Nonnull)  aMessages
optional

Occurs when the SDK receives new messages.

Parameters
aMessagesThe received messages. An NSArray of the <AgoraChatMessage> objects.

◆ messagesInfoDidRecall:

- (void) messagesInfoDidRecall: (NSArray< AgoraChatRecallMessageInfo * > *_Nonnull)  aRecallMessagesInfo
optional

Occurs when a message is recalled.

Parameters
aMessagesThe list of recalled messages.

◆ messageStatusDidChange:error:

- (void) messageStatusDidChange: (AgoraChatMessage *_Nonnull)  aMessage
error: (AgoraChatError *_Nullable)  aError 
optional

Occurs when message status has changed. You need to set the parameter as nil.

Parameters
aMessageThe message whose status has changed.
aErrorThe error information.

◆ onConversationRead:to:

- (void) onConversationRead: (NSString *_Nonnull)  from
to: (NSString *_Nonnull)  to 
optional

Occurs when a conversation read receipt is received.

Parameters
fromThe username who send channel_ack.
toThe username who receive channel_ack.

If the conversaion readack is from the current login ID's multiple devices: The value of the "FROM" parameter is current login ID, and the value of the "to" parameter is the conversation ID. All the messages sent by the conversation are set to read: "isRead" is set to YES. If the send conversation readack is from the conversation ID's device: The value of the "FROM" parameter is the conversation ID, and the value of the "to" parameter is current login ID. The "isReaAck" of messages sent by login ID in this session will all be set to YES. Note: This conversation is the conversation represented by the conversation ID.

◆ onMessageContentChanged:operatorId:operationTime:

- (void) onMessageContentChanged: (AgoraChatMessage *_Nonnull)  message
operatorId: (NSString *_Nonnull)  operatorId
operationTime: (NSUInteger)  operationTime 
optional

Occurs when the message content is modified.

Parameters
messageThe modified message object, where the message body contains the information such as the number of message modifications, the operator of the last modification, and the last modification time.Also, you can get the operator of the last message modification and the last modification time via the onMessageContentChanged method.
operatorIdThe user ID of the operator that modified the message last time.
operationTimeThe last message modification time. It is a UNIX timestamp in milliseconds.

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