ShengwangChatSDK 1.3.2
构造函数 | 所有成员列表
<AgoraChatManagerDelegate>协议 参考

#import <AgoraChatManagerDelegate.h>

类 <AgoraChatManagerDelegate> 继承关系图:

构造函数

(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) - onMessagePinChanged:conversationId:operation:pinInfo:
 
(void) - messageReactionDidChange:
 

详细描述

The chat related callbacks.

函数文档

◆ cmdMessagesDidReceive:

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

Occurs when receiving command messages.

参数
aCmdMessagesThe command message NSArray.

◆ conversationListDidUpdate:

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

Occurs when the conversation list changes.

参数
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.

参数
aMessageThe acknowledged message.
aGroupAcksThe read acks of the message.

◆ messageAttachmentStatusDidChange:error:

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

Occurs when the message attachment status changed.

参数
aMessageThe message whose attachment status has changed.
aErrorThe error information.

◆ messageReactionDidChange:

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

Occurs when the Reaction data changes.

参数
changesThe Reaction which is changed.

◆ messagesDidDeliver:

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

Occurs when receiving delivered acknowledgement in message list.

参数
aMessagesThe acknowledged message NSArray.

◆ messagesDidRead:

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

Occurs when receiving read acknowledgement in message list.

参数
aMessagesThe read messages.

◆ messagesDidReceive:

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

Occurs when the SDK receives new messages.

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

◆ messagesInfoDidRecall:

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

Occurs when a message is recalled. If the recalled message is offline, the AgoraChatRecallMessageInfo object will be an empty object.

参数
aRecallMessagesInfoThe 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.

参数
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.

参数
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.

参数
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.

◆ onMessagePinChanged:conversationId:operation:pinInfo:

- (void) onMessagePinChanged: (NSString *_Nonnull)  messageId
conversationId: (NSString *_Nonnull)  conversationId
operation: (AgoraChatMessagePinOperation)  pinOperation
pinInfo: (AgoraChatMessagePinInfo *_Nonnull)  pinInfo 
optional

Occurs when the message pinning status changed.

参数
messageIdThe ID of the message with the changed pinning status.
conversationIdThe ID of the conversation that contains the message.
pinOperationThe message pinning or unpinning operation.
pinInfoThe information about message pinning or unpinning, including the operation time and the user ID of the operater.

该协议的文档由以下文件生成: