9#import <Foundation/Foundation.h>
11#import "NIMQChatAPIDefs.h"
13NS_ASSUME_NONNULL_BEGIN
135@protocol NIMQChatMessageManagerDelegate <NSObject>
153- (void)uploadAttachmentSuccess:(NSString *)urlString
163 progress:(
float)progress;
173 didCompleteWithError:(nullable NSError *)error;
182 progress:(
float)progress;
192 didCompleteWithError:(nullable NSError *)error;
250@protocol NIMQChatMessageManager <NSObject>
263 error:(NSError * __nullable *)error;
293 error:(NSError * __nullable *)error;
305 error:(NSError * __nullable *)error;
318 error:(NSError * __nullable *)error;
331 error:(NSError * __nullable *)error;
361 error:(NSError * __nullable *)error;
520- (void)clearMessageCache;
530- (BOOL)insertOrReplaceTextCache:(
unsigned long long)serverId
531 channelId:(
unsigned long long)channelId
532 value:(NSString *)value;
545- (BOOL)deleteTextCache:(
unsigned long long)serverId
546 channelId:(
unsigned long long)channelId;
555- (nullable NSString *)getTextCache:(
unsigned long long)serverId
556 channelId:(
unsigned long long)channelId;
563- (void)addDelegate:(
id<NIMQChatMessageManagerDelegate>)delegate;
570- (void)removeDelegate:(
id<NIMQChatMessageManagerDelegate>)delegate;
void(^ NIMQChatHandler)(NSError *__nullable error)
Definition: NIMQChatDefs.h:280
void(^ NIMQChatSearchMsgByPageHandler)(NSError *__nullable error, NIMQChatSearchMsgByPageResult *__nullable result)
Definition: NIMQChatMessageManagerProtocol.h:114
void(^ NIMQChatSendSystemNotificationHandler)(NSError *__nullable error, NIMQChatSendSystemNotificationResult *__nullable result)
Definition: NIMQChatMessageManagerProtocol.h:59
void(^ NIMQChatGetMessageCacheHandler)(NSError *__nullable error, NIMQChatGetMessageCacheResult *__nullable result)
Definition: NIMQChatMessageManagerProtocol.h:91
void(^ NIMQChatUpdateSystemNotificationHandler)(NSError *__nullable error, NIMQChatUpdateSystemNotificationResult *__nullable result)
Definition: NIMQChatMessageManagerProtocol.h:83
void(^ NIMQChatGetLastMessageOfChannelsHandler)(NSError *__nullable error, NIMQChatGetLastMessageOfChannelsResult *__nullable result)
Definition: NIMQChatMessageManagerProtocol.h:107
void(^ NIMQChatSendMessageTypingEventHandler)(NSError *__nullable error, NIMQChatMessageTypingEvent *__nullable result)
Definition: NIMQChatMessageManagerProtocol.h:99
void(^ NIMQChatAreMentionedMeMessagesHandler)(NSError *__nullable error, NIMQChatAreMentionedMeMessagesResult *__nullable result)
Definition: NIMQChatMessageManagerProtocol.h:128
void(^ NIMQChatGetMentionedMeMessagesHandler)(NSError *__nullable error, NIMQChatGetMentionedMeMessagesResult *__nullable result)
Definition: NIMQChatMessageManagerProtocol.h:121
void(^ NIMQChatUpdateMessageHandler)(NSError *__nullable error, NIMQChatUpdateMessageResult *__nullable result)
Definition: NIMQChatMessageManagerProtocol.h:75
void(^ NIMQChatGetMessageHistoryHandler)(NSError *__nullable error, NIMQChatGetMessageHistoryResult *__nullable result)
Definition: NIMQChatMessageManagerProtocol.h:67
Definition: NIMQChatAreMentionedMeMessagesParam.h:22
Definition: NIMQChatAreMentionedMeMessagesResult.h:19
Definition: NIMQChatDeleteMessageParam.h:20
Definition: NIMQChatGetLastMessageOfChannelsParam.h:15
Definition: NIMQChatGetLastMessageOfChannelsResult.h:16
Definition: NIMQChatGetMentionedMeMessagesParam.h:20
Definition: NIMQChatGetMentionedMeMessagesResult.h:19
Definition: NIMQChatGetMessageCacheParam.h:17
Definition: NIMQChatGetMessageCacheResult.h:19
Definition: NIMQChatGetMessageHistoryByIdsParam.h:19
Definition: NIMQChatGetMessageHistoryParam.h:17
Definition: NIMQChatGetMessageHistoryResult.h:18
Definition: NIMQChatMarkMessageReadParam.h:17
Definition: NIMQChatMarkServerReadResult.h:19
Definition: NIMQChatMarkSystemNotificationsReadParam.h:27
Definition: NIMQChatMessage.h:55
Definition: NIMQChatMessageServerIdInfo.h:14
Definition: NIMQChatMessageTypingEvent.h:13
Definition: NIMQChatReceiveSystemNotificationResult.h:17
Definition: NIMQChatResendSystemNotificationParam.h:18
Definition: NIMQChatRevokeMessageParam.h:20
Definition: NIMQChatSearchMsgByPageParam.h:20
Definition: NIMQChatSearchMsgByPageResult.h:19
Definition: NIMQChatSendSystemNotificationParam.h:18
Definition: NIMQChatSendSystemNotificationResult.h:19
Definition: NIMQChatServerUnreadInfo.h:13
Definition: NIMQChatSystemNotificationUpdateResult.h:18
Definition: NIMQChatUnreadInfoChangedEvent.h:19
Definition: NIMQChatUpdateMessageEvent.h:19
Definition: NIMQChatUpdateMessageParam.h:21
Definition: NIMQChatUpdateMessageResult.h:19
Definition: NIMQChatUpdateSystemNotificationParam.h:20
Definition: NIMQChatUpdateSystemNotificationResult.h:19
Definition: NIMSession.h:49