NIMSDK-iOS
|
类 | |
protocol | <NIMConversationManagerDelegate> |
protocol | <NIMExportMessageDelegate> |
protocol | <NIMImportMessageDelegate> |
protocol | <NIMConversationManager> |
类型定义 | |
typedef void(^ | NIMFetchMessageHistoryBlock) (NSError *__nullable error, NSArray< NIMMessage * > *__nullable messages) |
typedef void(^ | NIMRetrieveServerMessagesBlock) (NSError *__nullable error, NSArray< NIMMessage * > *__nullable messages) |
typedef void(^ | NIMBatchDeleteMessagesBlock) (NSError *__nullable error) |
typedef void(^ | NIMUpdateMessageBlock) (NSError *__nullable error) |
typedef void(^ | NIMImportRecentSessionsBlock) (NSError *__nullable error, NSArray< NIMImportedRecentSession * > *__nullable failedImportedRecentSessions) |
typedef void(^ | NIMRemoveRemoteMessageBlock) (NSError *__nullable error) |
typedef void(^ | NIMRemoveRemoteSessionBlock) (NSError *__nullable error) |
typedef void(^ | NIMSessionDeleteAllRemoteMessagesCompletionBlock) (NSError *_Nullable error) |
typedef void(^ | NIMDeleteRemoteMessagesCompletionBlock) (NSError *_Nullable error) |
typedef void(^ | NIMSearchMessageBlock) (NSError *__nullable error, NSArray< NIMMessage * > *__nullable messages) |
typedef void(^ | NIMGlobalSearchMessageBlock) (NSError *__nullable error, NSDictionary< NIMSession *, NSArray< NIMMessage * > * > *__nullable messages) |
typedef void(^ | NIMExportMessageProgress) (float progress) |
typedef void(^ | NIMExportMessageComletion) (NSError *__nullable error, NSString *__nullable resultFilePath) |
typedef void(^ | NIMImportMessageProgress) (float progress) |
typedef void(^ | NIMImportMessageCompletion) (NSError *__nullable error) |
typedef void(^ | NIMUpdateMigrateMessageCompletion) (NSError *__nullable error) |
typedef void(^ | NIMFetchMigrateMessageCompletion) (NSError *__nullable error, NSString *__nullable remoteFilePath, NSString *__nullable secureKey) |
typedef void(^ | NIMFetchRecentSessionsHistoryBlock) (NSError *__nullable error, NSArray< NIMRecentSession * > *__nullable recentSessions, BOOL hasMore) |
typedef void(^ | NIMFetchRecentSessionHistoryBlock) (NSError *__nullable error, NIMRecentSession *_Nullable recentSession) |
typedef void(^ | NIMRemoteRecentSessionBlock) (NSError *__nullable error) |
typedef void(^ | NIMUpdateIncompleteSessionsBlock) (NSError *__nullable error, NSArray< NIMImportedRecentSession * > *__nullable faileds) |
typedef void(^ | NIMIncompleteSessionsBlock) (NSError *__nullable error, NSArray< NIMIncompleteSessionInfo * > *__nullable result) |
typedef void(^ | NIMBatchSendACKSessionsBlock) (NSError *__nullable error, NSArray< NIMSession * > *_Nullable sessions) |
typedef void(^ | NIMSendACKSessionsBlock) (NSError *__nullable error) |
typedef void(^ | NIMGetMessagesDynamicallyBlock) (NSError *__nullable error, BOOL isReliable, NSArray< NIMMessage * > *__nullable messages) |
枚举 | |
enum | NIMClearMessagesStatus { NIMClearMessagesStatusLocalCleared = 0 , NIMClearMessagesStatusServerCleared , NIMClearMessagesStatusServerFailed } |
typedef void(^ NIMBatchDeleteMessagesBlock) (NSError *__nullable error) |
删除本地消息记录block
error | 错误,如果成功则error为nil |
typedef void(^ NIMBatchSendACKSessionsBlock) (NSError *__nullable error, NSArray< NIMSession * > *_Nullable sessions) |
批量发送会话已读回调
error | 错误,如果成功则error为nil |
result | 发送失败的会话 |
typedef void(^ NIMDeleteRemoteMessagesCompletionBlock) (NSError *_Nullable error) |
批量单向删除消息的回调block
typedef void(^ NIMExportMessageComletion) (NSError *__nullable error, NSString *__nullable resultFilePath) |
导出历史消息完成回调
error | 错误,如果成功则为 nil |
resultFilePath | 如果成功,则为结果文件路径 |
typedef void(^ NIMExportMessageProgress) (float progress) |
导出历史消息进度回调
progress | 进度 0-100 |
typedef void(^ NIMFetchMessageHistoryBlock) (NSError *__nullable error, NSArray< NIMMessage * > *__nullable messages) |
读取服务器消息记录block
error | 错误,如果成功则error为nil |
messages | 读取的消息列表 |
typedef void(^ NIMFetchMigrateMessageCompletion) (NSError *__nullable error, NSString *__nullable remoteFilePath, NSString *__nullable secureKey) |
获取历史备份文件结果回调
error | 错误,如果成功则为 nil |
remoteFilePath | 备份文件远端路径 |
secureKey | 备份文件解密的 key |
typedef void(^ NIMFetchRecentSessionHistoryBlock) (NSError *__nullable error, NIMRecentSession *_Nullable recentSession) |
读取服务器会话block
error | 错误,如果成功则error为nil |
recentSession | 结果会话 |
typedef void(^ NIMFetchRecentSessionsHistoryBlock) (NSError *__nullable error, NSArray< NIMRecentSession * > *__nullable recentSessions, BOOL hasMore) |
读取服务器会话列表block
error | 错误,如果成功则error为nil |
recentSessions | 读取的消息列表 |
hasMore | 最小时间戳只有请求第一页时会返回这个参数,表示下一次增量同步时带在请求参数里 |
typedef void(^ NIMGetMessagesDynamicallyBlock) (NSError *__nullable error, BOOL isReliable, NSArray< NIMMessage * > *__nullable messages) |
动态获取消息的回调
error | 错误,如果成功则error为nil |
isReliable | 是否可靠(是否一定符合输入条件的) |
messages | 消息 |
typedef void(^ NIMGlobalSearchMessageBlock) (NSError *__nullable error, NSDictionary< NIMSession *, NSArray< NIMMessage * > * > *__nullable messages) |
全局搜索本地消息记录Block
error | 错误,如果成功则error为nil |
messages | 读取的消息列表 |
typedef void(^ NIMImportMessageCompletion) (NSError *__nullable error) |
导入历史消息完成回调
error | 错误,如果成功则为 nil |
typedef void(^ NIMImportMessageProgress) (float progress) |
导入历史消息进度回调
progress | 进度 0-100 |
typedef void(^ NIMImportRecentSessionsBlock) (NSError *__nullable error, NSArray< NIMImportedRecentSession * > *__nullable failedImportedRecentSessions) |
导入本地最近会话 Block
error | 错误,如果成功则error为nil |
failedImportedRecentSessions | 导入失败的最近会话 |
typedef void(^ NIMIncompleteSessionsBlock) (NSError *__nullable error, NSArray< NIMIncompleteSessionInfo * > *__nullable result) |
未完整会话信息
error | 错误,如果成功则error为nil |
result | 更新失败的会话 |
typedef void(^ NIMRemoteRecentSessionBlock) (NSError *__nullable error) |
更新服务端端会话扩展
error | 错误,如果成功则error为nil |
typedef void(^ NIMRemoveRemoteMessageBlock) (NSError *__nullable error) |
标记远端会话Block
error | 错误,如果成功则error为nil |
typedef void(^ NIMRemoveRemoteSessionBlock) (NSError *__nullable error) |
标记远端会话Block
error | 错误,如果成功则error为nil |
typedef void(^ NIMRetrieveServerMessagesBlock) (NSError *__nullable error, NSArray< NIMMessage * > *__nullable messages) |
服务器消息检索记录block
error | 错误,如果成功则error为nil |
messages | 读取的消息列表 |
typedef void(^ NIMSearchMessageBlock) (NSError *__nullable error, NSArray< NIMMessage * > *__nullable messages) |
搜索本地消息记录Block
error | 错误,如果成功则error为nil |
messages | 读取的消息列表 @discussion 只有在传入参数错误时才会有error产生 |
typedef void(^ NIMSendACKSessionsBlock) (NSError *__nullable error) |
发送会话已读回调
error | 错误,如果成功则error为nil |
typedef void(^ NIMSessionDeleteAllRemoteMessagesCompletionBlock) (NSError *_Nullable error) |
清空历史消息block
error | 错误,如果成功则error为nil |
typedef void(^ NIMUpdateIncompleteSessionsBlock) (NSError *__nullable error, NSArray< NIMImportedRecentSession * > *__nullable faileds) |
批量更新未完整会话列表
error | 错误,如果成功则error为nil |
faileds | 更新失败的会话 |
typedef void(^ NIMUpdateMessageBlock) (NSError *__nullable error) |
更新本地消息 Block
error | 错误,如果成功则error为nil |
typedef void(^ NIMUpdateMigrateMessageCompletion) (NSError *__nullable error) |
更新服务器历史备份文件结果回调
error | 错误,如果成功则为 nil |