|
| typedef std::function< void(const std::function< void()> &)> | SDKClosure |
| |
| typedef std::function< void(int64_t room_id, const NIMChatRoomEnterStep step, int error_code, const ChatRoomInfo &info, const ChatRoomMemberInfo &my_info)> | EnterCallback |
| | 登录回调, 如果错误码为kResRoomLocalNeedRequestAgain,聊天室重连机制结束,则需要向IM服务器重新请求进入该聊天室权限
|
| |
| typedef std::function< void(int64_t room_id, int error_code, NIMChatRoomExitReason exit_reason)> | ExitCallback |
| | 登出、被踢回调
|
| |
| typedef std::function< void(int64_t room_id, int error_code, const NIMChatRoomExitReasonInfo &exit_info)> | ExitCallback_2 |
| | 登出、被踢回调
|
| |
| typedef std::function< void(int64_t room_id, int error_code, const ChatRoomMessage &result)> | SendMsgAckCallback |
| | 发送消息回执
|
| |
| typedef std::function< void(int64_t room_id, const ChatRoomMessage &result)> | ReceiveMsgCallback |
| | 接收消息回调
|
| |
| typedef std::function< void(int64_t room_id, const std::list< ChatRoomMessage > &result)> | ReceiveMsgsCallback |
| | 接收批量消息回调
|
| |
| typedef std::function< void(int64_t room_id, const ChatRoomNotification ¬ification)> | NotificationCallback |
| | 通知回调
|
| |
| typedef std::function< void(int64_t room_id, int error_code, const std::list< ChatRoomMemberInfo > &infos)> | GetMembersCallback |
| | 在线查询成员列表回调
|
| |
| typedef std::function< void(int64_t room_id, int error_code, uint64_t)> | GetMembersCountByTagCallback |
| | 在线查询成员列表回调
|
| |
| typedef std::function< void(int64_t room_id, int error_code, const std::list< ChatRoomMessage > &msgs)> | GetMsgHistoryCallback |
| | 在线查询消息历史回调
|
| |
| typedef std::function< void(int64_t room_id, int error_code, const ChatRoomMemberInfo &info)> | SetMemberAttributeCallback |
| | 设置成员身份标识回调
|
| |
| typedef std::function< void(int64_t room_id, int error_code, const ChatRoomInfo &info)> | GetChatRoomInfoCallback |
| | 获取当前聊天室信息回调
|
| |
| typedef std::function< void(int64_t room_id, int error_code)> | KickMemberCallback |
| | 踢掉指定成员回调
|
| |
| typedef std::function< void(int64_t room_id, const NIMChatRoomLinkCondition condition)> | LinkConditionCallback |
| | 服务连接情况回调
|
| |
| typedef std::function< void(int64_t room_id, const std::string &new_tag)> | TagsChangedCallback |
| | 自己的聊天室 tags 信息变更回调
|
| |
| typedef std::function< void(std::string &token)> | CustomTokenCallback |
| | 获取自定义token回调
|
| |
| typedef std::function< void(const std::string &appkey, const std::string &account, std::string &token)> | RequestTokenCallback |
| | 获取自定义token回调
|
| |
| typedef std::function< void(const std::string &appkey, const std::string &account, std::string &token)> | RequestExtensionCallback |
| | 登录时请求第三方鉴权扩展信息回调
|
| |
| typedef SetMemberAttributeCallback | TempMuteMemberCallback |
| | 临时禁言/解禁回调
|
| |
| typedef KickMemberCallback | UpdateRoomInfoCallback |
| | 更新聊天室信息回调
|
| |
| typedef KickMemberCallback | UpdateMyRoomRoleCallback |
| | 更新我的信息回调
|
| |
| typedef KickMemberCallback | UpdateLocationCallback |
| | 更新聊天室中用户的位置信息回调
|
| |
| typedef KickMemberCallback | UpdateTagsCallback |
| | 更新聊天室标签回调
|
| |
| typedef KickMemberCallback | QueueOfferCallback |
| | 新加(更新)麦序队列元素回调
|
| |
| typedef std::function< void(int64_t room_id, int error_code, const ChatRoomQueueElement &element)> | QueuePollCallback |
| | 取出麦序队列元素回调
|
| |
| typedef std::function< void(int64_t room_id, int error_code, const ChatRoomQueue &queue)> | QueueListCallback |
| | 排序列出麦序队列所有元素回调
|
| |
| typedef KickMemberCallback | QueueDropCallback |
| | 删除麦序队列元素回调
|
| |
| typedef QueuePollCallback | QueueHeaderCallback |
| | 查看麦序队列头元素回调
|
| |
| typedef std::function< void(int rescode, const RobotInfos &infos)> | RobotQueryCallback |
| | 获取机器人信息事件通知回调模板
|
| |
| typedef std::function< void(int64_t room_id, int error_code, const std::list< std::string > ¬_in_queue)> | QueueBatchUpdateCallback |
| | 队列批量更新回调
|
| |
| typedef std::function< void(const std::string &text)> | SDKLogCallback |
| | SDK系统日志回调模板
|
| |
|
| static void | RegEnterCb (const EnterCallback &cb, const std::string &json_extension="") |
| |
| static void | RegExitCb (const ExitCallback &cb, const std::string &json_extension="") |
| |
| static void | RegExitCb_2 (const ExitCallback_2 &cb, const std::string &json_extension="") |
| |
| static void | RegSendMsgAckCb (const SendMsgAckCallback &cb, const std::string &json_extension="") |
| |
| static void | RegReceiveMsgCb (const ReceiveMsgCallback &cb, const std::string &json_extension="") |
| |
| static void | RegReceiveMsgsCb (const ReceiveMsgsCallback &cb, const std::string &json_extension="") |
| |
| static void | RegNotificationCb (const NotificationCallback &cb, const std::string &json_extension="") |
| |
| static void | RegLinkConditionCb (const LinkConditionCallback &cb, const std::string &json_extension="") |
| |
| static void | RegTagsChangedCb (const TagsChangedCallback &cb, const std::string &json_extension="") |
| |
| static void | RegCustomTokenCb (const CustomTokenCallback &cb, const std::string &json_extension="") |
| |
| static void | RegRequestLoginTokenCb (const RequestTokenCallback &cb, const std::string &json_extension="") |
| |
| static void | RegRequestLoginExtensionCb (const RequestExtensionCallback &cb, const std::string &json_extension="") |
| |
| static void | RegSDKLogCallback (const SDKLogCallback &callback) |
| |
| static bool | Init (const std::string &app_install_dir, const std::string &json_extension="") |
| |
| static void | Cleanup (const std::string &json_extension="") |
| |
| static bool | IndependentEnter (const int64_t room_id, const ChatRoomIndependentEnterInfo &info) |
| |
| static bool | IndependentEnter2 (const int64_t room_id, const ChatRoomIndependentEnterInfo &info, const NIMChatRoomConfigGetter config_getter) |
| |
| static bool | AnonymousEnter (const int64_t room_id, const ChatRoomAnoymityEnterInfo &anonymity_info, const ChatRoomEnterInfo &info, const std::string &json_extension="") |
| |
| static bool | AnonymousEnter2 (const int64_t room_id, const ChatRoomAnoymityEnterInfo &anonymity_info, const ChatRoomEnterInfo &info, const NIMChatRoomConfigGetter config_getter) |
| |
| static bool | Enter (const int64_t room_id, const std::string &request_login_data, const ChatRoomEnterInfo &info=ChatRoomEnterInfo(), const std::string &json_extension="") |
| |
| static void | Exit (const int64_t room_id, const std::string &json_extension="") |
| |
| static NIMChatRoomLoginState | GetLoginState (const int64_t room_id, const std::string &json_extension="") |
| |
| static void | SetMsgsBatchReport (bool set_batch, const std::string &json_extension="") |
| |
| static void | SendMsg (const int64_t room_id, const std::string &json_msg, const std::string &json_extension="") |
| |
| static void | SendMsg (const int64_t room_id, const ChatRoomMessage &message, const std::string &json_extension="") |
| |
| static std::string | CreateRoomMessage (const NIMChatRoomMsgType msg_type, const std::string &client_msg_id, const std::string &attach, const std::string &msg_body, const ChatRoomMessageSetting &msg_setting, int64_t timetag=0, int32_t msg_sub_type=0, const std::string &target_tags="") |
| |
| static void | GetMembersOnlineAsync (const int64_t room_id, const ChatRoomGetMembersParameters ¶meters, const GetMembersCallback &callback, const std::string &json_extension="") |
| |
| static void | GetMembersByTagOnlineAsync (const int64_t room_id, const ChatRoomGetMembersByTagParameters ¶meters, const GetMembersCallback &callback, const std::string &json_extension="") |
| | 根据 tag 异步查询聊天室成员列表
|
| |
| static void | GetMembersCountByTagOnlineAsync (const int64_t room_id, const std::string &target_tag, const GetMembersCountByTagCallback &callback, const std::string &json_extension) |
| | 获取聊天室内指定 tag 的成员数量
|
| |
| static void | GetMessageHistoryOnlineAsync (const int64_t room_id, const ChatRoomGetMsgHistoryParameters ¶meters, const GetMsgHistoryCallback &callback, const std::string &json_extension="") |
| |
| static void | GetMessageHistoryByTagsOnlineAsync (const int64_t room_id, const ChatRoomGetMsgHistoryByTagsParameters ¶meters, const GetMsgHistoryCallback &callback, const std::string &json_extension="") |
| | 根据消息关联的标签查询历史消息
|
| |
| static void | SetMemberAttributeOnlineAsync (const int64_t room_id, const ChatRoomSetMemberAttributeParameters ¶meters, const SetMemberAttributeCallback &callback, const std::string &json_extension="") |
| |
| static void | GetInfoAsync (const int64_t room_id, const GetChatRoomInfoCallback &callback, const std::string &json_extension="") |
| |
| static void | GetMemberInfoByIDsAsync (const int64_t room_id, const std::list< std::string > &ids, const GetMembersCallback &callback, const std::string &json_extension="") |
| |
| static void | KickMemberAsync (const int64_t room_id, const std::string &id, const std::string ¬ify_ext, const KickMemberCallback &callback, const std::string &json_extension="") |
| |
| static void | SetProxy (NIMChatRoomProxyType type, const std::string &host, int port, const std::string &user, const std::string &password) |
| |
| static void | TempMuteMemberAsync (const int64_t room_id, const std::string &accid, const int64_t duration, bool need_notify, const std::string ¬ify_ext, const TempMuteMemberCallback &callback, const std::string &json_extension="") |
| |
| static void | TempMuteMemberByTagAsync (const int64_t room_id, const std::string &target_tag, const int64_t duration, bool need_notify, const std::string ¬ify_ext, const TempMuteMemberCallback &callback, const std::string ¬ify_tags="", const std::string &json_extension="") |
| |
| static void | UpdateRoomInfoAsync (const int64_t room_id, const ChatRoomInfo &info, bool need_notify, const std::string ¬ify_ext, const UpdateRoomInfoCallback &callback, const std::string &json_extension="") |
| |
| static void | UpdateMyRoomRoleAsync (const int64_t room_id, const ChatRoomMemberInfo &info, bool need_notify, const std::string ¬ify_ext, const UpdateMyRoomRoleCallback &callback, const std::string &json_extension="") |
| |
| static void | QueueOfferAsync (const int64_t room_id, const ChatRoomQueueElement &element, const QueueOfferCallback &callback, const std::string &json_extension="{\"transient\":true}") |
| |
| static void | QueueOfferAsyncEx (const int64_t room_id, const ChatRoomQueueElement &element, const ChatRoomQueueOfferOption &option, const QueueOfferCallback &callback) |
| |
| static void | QueuePollAsync (const int64_t room_id, const std::string &element_key, const QueuePollCallback &callback, const std::string &json_extension="") |
| |
| static void | QueueListAsync (const int64_t room_id, const QueueListCallback &callback, const std::string &json_extension="") |
| |
| static void | QueueHeaderAsync (const int64_t room_id, const QueueHeaderCallback &callback, const std::string &json_extension="") |
| |
| static void | QueueDropAsync (const int64_t room_id, const QueueDropCallback &callback, const std::string &json_extension="") |
| |
| static void | UnregChatroomCb () |
| |
| static RobotInfos | QueryAllRobotInfosBlock (const int64_t room_id, const std::string &json_extension="") |
| |
| static RobotInfo | QueryRobotInfoByAccidBlock (const int64_t room_id, const std::string &accid, const std::string &json_extension="") |
| |
| static void | GetRobotInfoAsync (const int64_t room_id, const int64_t timetag, const RobotQueryCallback &callback, const std::string &json_extension="") |
| |
| static void | QueueBatchUpdateAsync (const int64_t room_id, const ChatRoomBatchMembers &batch_elements, bool need_notify, const std::string ¬ify_ext, const QueueBatchUpdateCallback &callback, const std::string &json_extension="") |
| |
| static bool | UpdateLocation (const int64_t room_id, NIMChatRoomLocation location, const UpdateLocationCallback &callback, const std::string &json_extension="") |
| |
| static bool | UpdateTags (const int64_t room_id, ChatRoomUpdateTagsInfo tags_info, const UpdateTagsCallback &callback, const std::string &json_extension="") |
| |