NIM 跨平台 C++ SDK
载入中...
搜索中...
未找到
nim_cpp_signaling.h
浏览该文件的文档.
1
8#ifndef _NIM_SDK_CPP_AVSIGNAL_H_
9#define _NIM_SDK_CPP_AVSIGNAL_H_
10
12
17namespace nim {
23public:
25 typedef std::function<void(std::shared_ptr<SignalingNotifyInfo>)> SignalingNotifyCallback;
27 typedef std::function<void(std::list<std::shared_ptr<SignalingNotifyInfo>>)> SignalingNotifyListCallback;
31 typedef std::function<void(std::list<SignalingChannelDetailedinfo>)> SignalingChannelListCallback;
33 typedef std::function<void(int, std::shared_ptr<SignalingResParam>)> SignalingOptCallback;
34
40 static void RegOnlineNotifyCb(SignalingNotifyCallback cb);
41
47 static void RegMutilClientSyncNotifyCb(SignalingNotifyCallback cb);
48
55 static void RegOfflineNotifyCb(SignalingNotifyListCallback cb);
56
63 static void RegChannelsSyncCb(SignalingChannelListCallback cb);
64
72 static void RegMembersSyncCb(SignalingChannelCallback cb);
73
87 static void SignalingCreate(SignalingCreateParam param, SignalingOptCallback cb);
88
103 static void SignalingClose(SignalingCloseParam param, SignalingOptCallback cb);
104
119 static void Join(SignalingJoinParam param, SignalingOptCallback cb);
120
132 static void Leave(SignalingLeaveParam param, SignalingOptCallback cb);
133
144 static void QueryChannelInfo(SignalingQueryChannelInfoParam param, SignalingOptCallback cb);
145
160 static void Call(SignalingCallParam param, SignalingOptCallback cb);
161
176 static void CallEx(SignalingCallParam param, SignalingOptCallback cb);
177
187 static void JoinAndAccept(SignalingJoinAndAcceptParam param, SignalingOptCallback cb);
188
206 static void Invite(SignalingInviteParam param, SignalingOptCallback cb);
207
221 static void CancelInvite(SignalingCancelInviteParam param, SignalingOptCallback cb);
222
238 static void Reject(SignalingRejectParam param, SignalingOptCallback cb);
239
257 static void Accept(SignalingAcceptParam param, SignalingOptCallback cb);
258
272 static void Control(SignalingControlParam param, SignalingOptCallback cb);
273};
274} // namespace nim
275
276#endif //_NIM_SDK_CPP_AVSIGNAL_H_
namespace nim
Definition: nim_cpp_signaling.h:22
std::function< void(std::shared_ptr< SignalingNotifyInfo >)> SignalingNotifyCallback
单条通知回调
Definition: nim_cpp_signaling.h:25
std::function< void(int, std::shared_ptr< SignalingResParam >)> SignalingOptCallback
信令操作回调
Definition: nim_cpp_signaling.h:33
std::function< void(std::list< std::shared_ptr< SignalingNotifyInfo > >)> SignalingNotifyListCallback
多条通知回调
Definition: nim_cpp_signaling.h:27
std::function< void(SignalingChannelDetailedinfo)> SignalingChannelCallback
频道信息回调
Definition: nim_cpp_signaling.h:29
std::function< void(std::list< SignalingChannelDetailedinfo >)> SignalingChannelListCallback
频道列表通知回调
Definition: nim_cpp_signaling.h:31
namespace nim
#define NIM_SDK_CPPWRAPPER_DLL_API
Definition: nim_sdk_cpp_wrapper.h:38
独立信令 辅助方法和数据结构定义
接受邀请接口nim_signaling_accept的传入参数
Definition: nim_signaling_helper.h:668
呼叫接口nim_signaling_call的传入参数
Definition: nim_signaling_helper.h:445
取消邀请接口nim_signaling_cancel_invite的传入参数
Definition: nim_signaling_helper.h:604
频道的详细信息,包含频道信息及成员列表
Definition: nim_signaling_helper.h:99
关闭频道接口nim_signaling_close的传入参数
Definition: nim_signaling_helper.h:306
控制通知接口nim_signaling_control的传入参数
Definition: nim_signaling_helper.h:719
创建频道接口nim_signaling_create的传入参数
Definition: nim_signaling_helper.h:265
邀请接口nim_signaling_invite的传入参数
Definition: nim_signaling_helper.h:569
Definition: nim_signaling_helper.h:514
加入频道接口nim_signaling_query_channel_info的传入参数
Definition: nim_signaling_helper.h:332
离开频道接口nim_signaling_leave的传入参数
Definition: nim_signaling_helper.h:384
查询频道接口nim_signaling_join的传入参数
Definition: nim_signaling_helper.h:411
拒绝接口nim_signaling_reject的传入参数
Definition: nim_signaling_helper.h:637