NIMQChatMessageManagerDelegate Protocol Reference
| Conforms to | NSObject |
|---|---|
| Declared in | NIMQChatMessageManagerProtocol.h |
– willSendMessage:
即将发送消息回调
- (void)willSendMessage:(NIMQChatMessage *)messageParameters
message |
当前发送的消息 |
|---|
Discussion
即将发送消息回调
因为发消息之前可能会有个准备过程,所以需要在收到这个回调时才将消息加入到 Datasource 中
Declared In
NIMQChatMessageManagerProtocol.h
– uploadAttachmentSuccess:forMessage:
上传资源文件成功的回调
- (void)uploadAttachmentSuccess:(NSString *)urlString forMessage:(NIMQChatMessage *)messageParameters
urlString |
当前消息资源获得的 url 地址 |
|---|---|
message |
当前发送的消息 |
Discussion
上传资源文件成功的回调
对于需要上传资源的消息(图片,视频,音频等),SDK 将在上传资源成功后通过这个接口进行回调,上层可以在收到该回调后进行推送信息的重新配置 (APNS payload)
Declared In
NIMQChatMessageManagerProtocol.h
– sendMessage:progress:
发送消息进度回调
- (void)sendMessage:(NIMQChatMessage *)message progress:(float)progressParameters
message |
当前发送的消息 |
|---|---|
progress |
进度 |
Discussion
发送消息进度回调
Declared In
NIMQChatMessageManagerProtocol.h
– sendMessage:didCompleteWithError:
发送消息完成回调
- (void)sendMessage:(NIMQChatMessage *)message didCompleteWithError:(nullable NSError *)errorParameters
message |
当前发送的消息 |
|---|---|
error |
失败原因,如果发送成功则error为nil |
Discussion
发送消息完成回调
Declared In
NIMQChatMessageManagerProtocol.h
– fetchMessageAttachment:progress:
收取消息附件回调
- (void)fetchMessageAttachment:(NIMQChatMessage *)message progress:(float)progressParameters
message |
当前收取的消息 |
|---|---|
progress |
进度 |
Discussion
收取消息附件回调
附件包括:图片,视频的缩略图,语音文件
Declared In
NIMQChatMessageManagerProtocol.h
– fetchMessageAttachment:didCompleteWithError:
收取消息附件完成回调
- (void)fetchMessageAttachment:(NIMQChatMessage *)message didCompleteWithError:(nullable NSError *)errorParameters
message |
当前收取的消息 |
|---|---|
error |
错误返回,如果收取成功,error为nil |
Discussion
收取消息附件完成回调
Declared In
NIMQChatMessageManagerProtocol.h
– onRecvMessages:
收到消息回调
- (void)onRecvMessages:(NSArray<NIMQChatMessage*> *)messagesParameters
messages |
消息列表,内部为NIMQChatMessage |
|---|
Discussion
收到消息回调
Declared In
NIMQChatMessageManagerProtocol.h
– onMessageUpdate:
圈组消息更新事件回调
- (void)onMessageUpdate:(NIMQChatUpdateMessageEvent *)eventParameters
event |
事件详情 |
|---|
Discussion
圈组消息更新事件回调
Declared In
NIMQChatMessageManagerProtocol.h
– unreadInfoChanged:
圈组未读信息变更事件回调(频道)
- (void)unreadInfoChanged:(NIMQChatUnreadInfoChangedEvent *)eventParameters
event |
事件详情 |
|---|
Discussion
圈组未读信息变更事件回调(频道)
Declared In
NIMQChatMessageManagerProtocol.h
– serverUnreadInfoChanged:
圈组服务器未读信息变更事件回调
- (void)serverUnreadInfoChanged:(NSDictionary<NSNumber*,NIMQChatServerUnreadInfo*> *)serverUnreadInfoDicParameters
serverUnreadInfoDic |
事件详情, key为@(serverId)(服务器ID的NSNumber),value 为NIMQChatServerUnreadInfo |
|---|
Discussion
圈组服务器未读信息变更事件回调
Declared In
NIMQChatMessageManagerProtocol.h
– onRecvSystemNotification:
圈组系统通知接收事件回调
- (void)onRecvSystemNotification:(NIMQChatReceiveSystemNotificationResult *)resultParameters
result |
结果详情 |
|---|
Discussion
圈组系统通知接收事件回调
Declared In
NIMQChatMessageManagerProtocol.h
– onRecvTypingEvent:
圈组类消息typing事件回调
- (void)onRecvTypingEvent:(NIMQChatMessageTypingEvent *)eventParameters
result |
结果详情 |
|---|
Discussion
圈组类消息typing事件回调
Declared In
NIMQChatMessageManagerProtocol.h
– onSystemNotificationUpdate:
圈组系统通知更新事件回调
- (void)onSystemNotificationUpdate:(NIMQChatSystemNotificationUpdateResult *)resultParameters
result |
结果详情 |
|---|
Discussion
圈组系统通知更新事件回调
Declared In
NIMQChatMessageManagerProtocol.h