NIM PC Cross Platform SDK
nim_cpp_signaling.h
Go to the documentation of this file.
1
8#ifndef _NIM_SDK_CPP_AVSIGNAL_H_
9#define _NIM_SDK_CPP_AVSIGNAL_H_
10
12
17namespace nim {
22class NIM_SDK_CPPWRAPPER_DLL_API Signaling {
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
独立信令 辅助方法和数据结构定义
接受邀请接口nim_signaling_accept的传入参数
Definition: nim_signaling_helper.h:673
呼叫接口nim_signaling_call的传入参数
Definition: nim_signaling_helper.h:450
取消邀请接口nim_signaling_cancel_invite的传入参数
Definition: nim_signaling_helper.h:609
频道的详细信息,包含频道信息及成员列表
Definition: nim_signaling_helper.h:104
关闭频道接口nim_signaling_close的传入参数
Definition: nim_signaling_helper.h:311
控制通知接口nim_signaling_control的传入参数
Definition: nim_signaling_helper.h:724
创建频道接口nim_signaling_create的传入参数
Definition: nim_signaling_helper.h:270
邀请接口nim_signaling_invite的传入参数
Definition: nim_signaling_helper.h:574
Definition: nim_signaling_helper.h:519
加入频道接口nim_signaling_query_channel_info的传入参数
Definition: nim_signaling_helper.h:337
离开频道接口nim_signaling_leave的传入参数
Definition: nim_signaling_helper.h:389
查询频道接口nim_signaling_join的传入参数
Definition: nim_signaling_helper.h:416
拒绝接口nim_signaling_reject的传入参数
Definition: nim_signaling_helper.h:642