NIM PC Cross Platform SDK
nim::PluginIn Class Reference

NIM SDK 提供的plugin接入接口类 More...

#include <nim_cpp_plugin_in.h>

Public Types

typedef std::function< void(int error_code, const std::string &result)> ChatRoomRequestEnterCallback
 获取聊天室登录信息回调
 
typedef std::function< void(int error_code, const std::list< std::string > &link_address_list)> QChatRequestLinkAddressCallback
 获取圈组link地址
 

Static Public Member Functions

static void ChatRoomRequestEnterAsync (const int64_t room_id, const ChatRoomRequestEnterCallback &callback, const std::string &json_extension="")
 
static void QChatRequestLinkAddress (uint32_t ip_version, const QChatRequestLinkAddressCallback &callback, const std::string &json_extension="")
 

Detailed Description

NIM SDK 提供的plugin接入接口类

Member Function Documentation

◆ QChatRequestLinkAddress()

void nim::PluginIn::QChatRequestLinkAddress ( uint32_t  ip_version,
const QChatRequestLinkAddressCallback callback,
const std::string &  json_extension = "" 
)
static

异步获取圈组link地址

Parameters
[in]ip_versionip协议, 0:ipv4, 1:ipv6, 2:all
[in]callback回调函数
[in]json_extensionjson扩展参数(备用,目前不需要)
Returns
void 无返回值
Note
错误码 200:成功 414:参数错误

The documentation for this class was generated from the following files: