NIMChatroomManager Protocol Reference
Conforms to | NSObject |
---|---|
Declared in | NIMChatroomManagerProtocol.h |
– enterChatroom:completion:
required method
进入聊天室
- (void)enterChatroom:(NIMChatroomEnterRequest *)request completion:(nullable NIMChatroomEnterHandler)completion
Parameters
request |
进入聊天室请求 |
---|---|
completion |
进入完成后的回调 |
Discussion
进入聊天室
Declared In
NIMChatroomManagerProtocol.h
– exitChatroom:completion:
required method
离开聊天室
- (void)exitChatroom:(NSString *)roomId completion:(nullable NIMChatroomHandler)completion
Parameters
roomId |
聊天室ID |
---|---|
completion |
离开聊天室的回调 |
Discussion
离开聊天室
Declared In
NIMChatroomManagerProtocol.h
– chatroomAuthMode:
required method
聊天室登录使用的模式
- (NSInteger)chatroomAuthMode:(NSString *)roomId
Parameters
roomId |
聊天室ID |
---|
Return Value
使用的登录模式
Discussion
聊天室登录使用的模式
Declared In
NIMChatroomManagerProtocol.h
– fetchMessageHistory:option:result:
required method
查询服务器保存的聊天室消息记录
- (void)fetchMessageHistory:(NSString *)roomId option:(NIMHistoryMessageSearchOption *)option result:(nullable NIMFetchChatroomHistoryBlock)result
Parameters
roomId |
聊天室ID |
---|---|
option |
查询选项 |
result |
完成回调 |
Discussion
查询服务器保存的聊天室消息记录
Declared In
NIMChatroomManagerProtocol.h
– fetchChatroomInfo:completion:
required method
获取聊天室信息
- (void)fetchChatroomInfo:(NSString *)roomId completion:(nullable NIMChatroomInfoHandler)completion
Parameters
roomId |
聊天室ID |
---|---|
completion |
获取聊天室信息的回调 @discus sion 只有已进入聊天室才能够获取对应的聊天室信息 |
Discussion
获取聊天室信息
Declared In
NIMChatroomManagerProtocol.h
– updateChatroomInfo:completion:
required method
修改聊天室信息
- (void)updateChatroomInfo:(NIMChatroomUpdateRequest *)request completion:(nullable NIMChatroomHandler)completion
Parameters
request |
聊天室修改请求 |
---|---|
completion |
修改后完成的回调 |
Discussion
修改聊天室信息
Declared In
NIMChatroomManagerProtocol.h
– updateMyChatroomMemberInfo:completion:
required method
修改自己在聊天室内的个人信息
- (void)updateMyChatroomMemberInfo:(NIMChatroomMemberInfoUpdateRequest *)request completion:(nullable NIMChatroomHandler)completion
Parameters
request |
个人信息更新请求 |
---|---|
completion |
修改完成后的回调 |
Discussion
修改自己在聊天室内的个人信息
Declared In
NIMChatroomManagerProtocol.h
– fetchChatroomMembers:completion:
required method
获取聊天室成员
- (void)fetchChatroomMembers:(NIMChatroomMemberRequest *)request completion:(nullable NIMChatroomMembersHandler)completion
Parameters
request |
获取成员请求 |
---|---|
completion |
请求完成回调 |
Discussion
获取聊天室成员
Declared In
NIMChatroomManagerProtocol.h
– fetchChatroomMembersByIds:completion:
required method
根据用户ID获取聊天室成员信息
- (void)fetchChatroomMembersByIds:(NIMChatroomMembersByIdsRequest *)request completion:(nullable NIMChatroomMembersHandler)completion
Parameters
request |
获取成员请求 |
---|---|
completion |
请求完成回调 |
Discussion
根据用户ID获取聊天室成员信息
Declared In
NIMChatroomManagerProtocol.h
– fetchChatroomMembersByTag:completion:
required method
根据标签获取聊天室内该标签下的成员
- (void)fetchChatroomMembersByTag:(NIMChatroomFetchMembersByTagRequest *)request completion:(nullable NIMChatroomMembersHandler)completion
Parameters
request |
获取标签成员请求 |
---|---|
completion |
请求完成回调 |
Discussion
根据标签获取聊天室内该标签下的成员
Declared In
NIMChatroomManagerProtocol.h
– queryChatroomMembersCountByTag:completion:
required method
根据标签查询聊天室内该标签下的在线成员数量
- (void)queryChatroomMembersCountByTag:(NIMChatroomQueryMembersCountByTagRequest *)request completion:(nullable NIMChatroomMembersCountHandler)completion
Parameters
request |
获取标签成员数量请求 |
---|---|
completion |
请求完成回调 |
Discussion
根据标签查询聊天室内该标签下的在线成员数量
Declared In
NIMChatroomManagerProtocol.h
– updateLocation:completion:
required method
更新坐标
- (void)updateLocation:(nonnull NIMChatroomLocation *)location completion:(nullable NIMChatroomHandler)completion
Parameters
location |
当前坐标和有效距离 |
---|---|
completion |
请求完成回调 |
Discussion
更新坐标
Declared In
NIMChatroomManagerProtocol.h
– updateTags:completion:
required method
更新标签
- (void)updateTags:(nonnull NIMChatroomTagsUpdate *)tags completion:(nullable NIMChatroomHandler)completion
Parameters
tags |
标签 |
---|---|
completion |
请求完成回调 |
Discussion
更新标签
Declared In
NIMChatroomManagerProtocol.h
– markMemberManager:completion:
required method
标记为聊天室管理员
- (void)markMemberManager:(NIMChatroomMemberUpdateRequest *)request completion:(nullable NIMChatroomHandler)completion
Parameters
request |
更新请求 |
---|---|
completion |
请求回调 |
Discussion
标记为聊天室管理员
Declared In
NIMChatroomManagerProtocol.h
– markNormalMember:completion:
required method
标记为聊天室普通成员
- (void)markNormalMember:(NIMChatroomMemberUpdateRequest *)request completion:(nullable NIMChatroomHandler)completion
Parameters
request |
更新请求 |
---|---|
completion |
请求回调 |
Discussion
标记为聊天室普通成员
Declared In
NIMChatroomManagerProtocol.h
– updateMemberBlack:completion:
required method
更新用户聊天室黑名单状态
- (void)updateMemberBlack:(NIMChatroomMemberUpdateRequest *)request completion:(nullable NIMChatroomHandler)completion
Parameters
request |
更新请求 |
---|---|
completion |
请求回调 |
Discussion
更新用户聊天室黑名单状态
Declared In
NIMChatroomManagerProtocol.h
– updateMemberMute:completion:
required method
更新用户聊天室静言状态
- (void)updateMemberMute:(NIMChatroomMemberUpdateRequest *)request completion:(nullable NIMChatroomHandler)completion
Parameters
request |
更新请求 |
---|---|
completion |
请求回调 |
Discussion
更新用户聊天室静言状态
Declared In
NIMChatroomManagerProtocol.h
– updateMemberTempMute:duration:completion:
required method
更新用户聊天室临时禁言状态
- (void)updateMemberTempMute:(NIMChatroomMemberUpdateRequest *)request duration:(unsigned long long)duration completion:(nullable NIMChatroomHandler)completion
Parameters
request |
更新请求 |
---|---|
duration |
临时禁言时长,单位为秒 |
completion |
请求回调 |
Discussion
更新用户聊天室临时禁言状态
Declared In
NIMChatroomManagerProtocol.h
– tempMuteTag:completion:
required method
针对标签更新聊天室临时禁言状态
- (void)tempMuteTag:(NIMChatroomTempMuteTagRequest *)request completion:(NIMChatroomHandler)completion
Parameters
request |
更新请求 |
---|---|
completion |
请求回调 |
duration |
临时禁言时长,单位为秒 |
Discussion
针对标签更新聊天室临时禁言状态
Declared In
NIMChatroomManagerProtocol.h
– kickMember:completion:
required method
将特定成员踢出聊天室
- (void)kickMember:(NIMChatroomMemberKickRequest *)request completion:(nullable NIMChatroomHandler)completion
Parameters
request |
踢出请求 |
---|---|
completion |
请求回调 |
Discussion
将特定成员踢出聊天室
Declared In
NIMChatroomManagerProtocol.h
– updateChatroomQueueObject:completion:
required method
加入或者更新聊天室通用队列元素,权限由 NIMChatroom 的 queueModificationLevel 决定
- (void)updateChatroomQueueObject:(NIMChatroomQueueUpdateRequest *)request completion:(nullable NIMChatroomHandler)completion
Parameters
request |
聊天室队列请求 |
---|---|
completion |
请求回调 |
Discussion
加入或者更新聊天室通用队列元素,权限由 NIMChatroom 的 queueModificationLevel 决定
Declared In
NIMChatroomManagerProtocol.h
– removeChatroomQueueObject:completion:
required method
移除聊天室队列元素,权限由 NIMChatroom 的 queueModificationLevel 决定
- (void)removeChatroomQueueObject:(NIMChatroomQueueRemoveRequest *)request completion:(nullable NIMChatroomQueueRemoveHandler)completion
Parameters
request |
拉取请求 |
---|---|
completion |
请求回调 |
Discussion
移除聊天室队列元素,权限由 NIMChatroom 的 queueModificationLevel 决定
Declared In
NIMChatroomManagerProtocol.h
– fetchChatroomQueue:completion:
required method
获取聊天室队列
- (void)fetchChatroomQueue:(NSString *)roomId completion:(nullable NIMChatroomQueueInfoHandler)completion
Parameters
roomId |
聊天室ID |
---|---|
completion |
请求回调 |
Discussion
获取聊天室队列
Declared In
NIMChatroomManagerProtocol.h
– dropChatroomQueue:completion:
required method
删除聊天室队列,权限由 NIMChatroom 的 queueModificationLevel 决定
- (void)dropChatroomQueue:(NSString *)roomId completion:(nullable NIMChatroomHandler)completion
Parameters
roomId |
聊天室ID |
---|---|
completion |
请求回调 |
Discussion
删除聊天室队列,权限由 NIMChatroom 的 queueModificationLevel 决定
Declared In
NIMChatroomManagerProtocol.h
– batchUpdateChatroomQueueObject:completion:
required method
批量更新聊天室通用队列元素,权限由 NIMChatroom 的 queueModificationLevel 决定
- (void)batchUpdateChatroomQueueObject:(NIMChatroomQueueBatchUpdateRequest *)request completion:(nullable NIMChatroomQueueBatchUpdateHandler)completion
Parameters
request |
聊天室队列批量请求 |
---|---|
completion |
请求回调 |
Discussion
批量更新聊天室通用队列元素,权限由 NIMChatroom 的 queueModificationLevel 决定
Declared In
NIMChatroomManagerProtocol.h
– addDelegate:
required method
添加通知对象
- (void)addDelegate:(id<NIMChatroomManagerDelegate>)delegate
Parameters
delegate |
通知对象 |
---|
Discussion
添加通知对象
Declared In
NIMChatroomManagerProtocol.h
– removeDelegate:
required method
移除通知对象
- (void)removeDelegate:(id<NIMChatroomManagerDelegate>)delegate
Parameters
delegate |
通知对象 |
---|
Discussion
移除通知对象
Declared In
NIMChatroomManagerProtocol.h