9#import <Foundation/Foundation.h>
18NS_ASSUME_NONNULL_BEGIN
62@protocol NIMChatManagerDelegate <NSObject>
79- (void)uploadAttachmentSuccess:(NSString *)urlString
89 progress:(
float)progress;
99 didCompleteWithError:(nullable NSError *)error;
107- (void)onRecvMessages:(NSArray<
NIMMessage *> *)messages;
133- (void)fetchMessageAttachment:(
NIMMessage *)message
134 progress:(
float)progress;
143- (void)fetchMessageAttachment:(
NIMMessage *)message
144 didCompleteWithError:(nullable NSError *)error;
152@protocol NIMChatManager <NSObject>
165 error:(NSError * __nullable *)error;
186- (BOOL)cancelSendingMessage:(
NIMMessage *)message;
198 error:(NSError * __nullable *)error;
211 error:(NSError *__autoreleasing _Nullable * _Nullable)error;
222- (BOOL)sendForwardMessage:(
NIMMessage *)message
224 error:(NSError * __nullable *)error;
237 error:(NSError * __nullable *)error;
269- (void)refreshTeamMessageReceipts:(NSArray<
NIMMessage *> *)messages;
281- (void)queryMessageReceiptDetail:(
NIMMessage *)message
290- (void)queryMessageReceiptDetail:(
NIMMessage *)message
291 accountSet:(NSSet *)accountSet
312 accountSet:(NSSet *)accountSet;
334 apnsContent:(nullable NSString *)apnsContent
335 apnsPayload:(nullable NSDictionary *)apnsPayload
336 shouldBeCounted:(BOOL)should
363- (BOOL)fetchMessageAttachment:(
NIMMessage *)message
364 error:(NSError * __nullable *)error;
376- (void)cancelFetchingMessageAttachment:(
NIMMessage *)message;
385- (BOOL)messageInTransport:(
NIMMessage *)message;
394- (float)messageTransportProgress:(
NIMMessage *)message;
401- (void)addDelegate:(
id<NIMChatManagerDelegate>)delegate;
408- (void)removeDelegate:(
id<NIMChatManagerDelegate>)delegate;
void(^ NIMSendTeamMessageReceiptsBlock)(NSError *__nullable error, NSArray< NIMMessageReceipt * > *__nullable failedReceipts)
Definition: NIMChatManagerProtocol.h:33
void(^ NIMChatManagerBlock)(NSError *__nullable error)
Definition: NIMChatManagerProtocol.h:56
void(^ NIMRevokeMessageBlock)(NSError *__nullable error)
Definition: NIMChatManagerProtocol.h:40
NS_ASSUME_NONNULL_BEGIN typedef void(^ NIMSendMessageReceiptBlock)(NSError *__nullable error)
void(^ NIMQueryReceiptDetailBlock)(NSError *__nullable error, NIMTeamMessageReceiptDetail *__nullable detail)
Definition: NIMChatManagerProtocol.h:48
Definition: NIMMessage.h:91
Definition: NIMMessageReceipt.h:21
Definition: NIMRevokeMessageNotification.h:45
Definition: NIMRevokeMessageOption.h:14
Definition: NIMSession.h:49
Definition: NIMTeamMessageReceiptDetail.h:19