NIM Unity SDK  V2.4.2
Public 成员函数 | 静态 Public 成员函数 | 所有成员列表
NIM.NIMSubscribeApi类 参考

Public 成员函数

delegate void PushEventDelegate (ResponseCode code, NIMEventInfo info)
 接收订阅的事件的回调函数定义 更多...
 
delegate void BatchPushEventDelegaet (ResponseCode code, List< NIMEventInfo > infoList)
 批量接收订阅的事件的回调函数定义 更多...
 
delegate void PublishEventDelegate (ResponseCode code, NIMEventInfo info)
 发布事件的回调函数定义 更多...
 
delegate void SubscribeEventDelegate (ResponseCode code, int type, List< string > failedIDList)
 订阅事件的回调函数定义 更多...
 
delegate void UnSubscribeEventDelegate (ResponseCode code, int type, List< string > failedIDList)
 按账号取消指定事件的订阅关系的回调函数定义 更多...
 
delegate void BatchUnscribeEventDelegate (ResponseCode code, int type)
 取消指定事件的全部订阅关系的回调函数定义 更多...
 
delegate void QuerySubscribeDelegate (ResponseCode code, List< NIMSubscribeStatus > subscribeList)
 查询指定事件的全部订阅关系的回调函数定义 更多...
 

静态 Public 成员函数

static void RegPushEventCb (PushEventDelegate cb)
 (全局回调)统一注册接收订阅的事件的回调函数 更多...
 
static void RegBatchPushEventCb (BatchPushEventDelegaet cb)
 (全局回调)统一注册批量接收订阅的事件的回调函数 更多...
 
static bool Publish (NIMEventInfo info, PublishEventDelegate cb, object data=null)
 发布事件 更多...
 
static bool Subscribe (int eventType, long period, NIMEventSubscribeSyncEventType syncType, List< string > idList, SubscribeEventDelegate cb)
 订阅事件 更多...
 
static bool UnSubscribe (int eventType, List< string > idList, UnSubscribeEventDelegate cb)
 按账号取消指定事件的订阅关系 更多...
 
static bool BatchUnSubscribe (int eventType, BatchUnscribeEventDelegate cb)
 取消指定事件的全部订阅关系 更多...
 
static bool QuerySubscribe (int eventType, List< string > idList, QuerySubscribeDelegate cb)
 按账号查询指定事件订阅关系 更多...
 
static bool BatchQuerySubscribe (int eventType, QuerySubscribeDelegate cb)
 查询指定事件的全部订阅关系 更多...
 

成员函数说明

◆ PushEventDelegate()

delegate void NIM.NIMSubscribeApi.PushEventDelegate ( ResponseCode  code,
NIMEventInfo  info 
)

接收订阅的事件的回调函数定义

参数
code错误码
info事件信息

◆ BatchPushEventDelegaet()

delegate void NIM.NIMSubscribeApi.BatchPushEventDelegaet ( ResponseCode  code,
List< NIMEventInfo infoList 
)

批量接收订阅的事件的回调函数定义

参数
code错误码

<param name="infoList"事件信息列表

◆ PublishEventDelegate()

delegate void NIM.NIMSubscribeApi.PublishEventDelegate ( ResponseCode  code,
NIMEventInfo  info 
)

发布事件的回调函数定义

参数
code错误码
info发布的事件信息

◆ SubscribeEventDelegate()

delegate void NIM.NIMSubscribeApi.SubscribeEventDelegate ( ResponseCode  code,
int  type,
List< string >  failedIDList 
)

订阅事件的回调函数定义

参数
code错误码
type订阅的事件类型
failedIDList订阅失败的帐号列表

◆ UnSubscribeEventDelegate()

delegate void NIM.NIMSubscribeApi.UnSubscribeEventDelegate ( ResponseCode  code,
int  type,
List< string >  failedIDList 
)

按账号取消指定事件的订阅关系的回调函数定义

参数
code错误码
type取消订阅的事件类型
failedIDList取消订阅失败的帐号列表

◆ BatchUnscribeEventDelegate()

delegate void NIM.NIMSubscribeApi.BatchUnscribeEventDelegate ( ResponseCode  code,
int  type 
)

取消指定事件的全部订阅关系的回调函数定义

参数
code错误码
type取消的事件类型

◆ QuerySubscribeDelegate()

delegate void NIM.NIMSubscribeApi.QuerySubscribeDelegate ( ResponseCode  code,
List< NIMSubscribeStatus subscribeList 
)

查询指定事件的全部订阅关系的回调函数定义

参数
code错误码
subscribeList订阅关系信息列表

◆ RegPushEventCb()

static void NIM.NIMSubscribeApi.RegPushEventCb ( PushEventDelegate  cb)
inlinestatic

(全局回调)统一注册接收订阅的事件的回调函数

参数
cb

◆ RegBatchPushEventCb()

static void NIM.NIMSubscribeApi.RegBatchPushEventCb ( BatchPushEventDelegaet  cb)
inlinestatic

(全局回调)统一注册批量接收订阅的事件的回调函数

参数
cb

◆ Publish()

static bool NIM.NIMSubscribeApi.Publish ( NIMEventInfo  info,
PublishEventDelegate  cb,
object  data = null 
)
inlinestatic

发布事件

参数
info事件信息
cb
data
返回

◆ Subscribe()

static bool NIM.NIMSubscribeApi.Subscribe ( int  eventType,
long  period,
NIMEventSubscribeSyncEventType  syncType,
List< string >  idList,
SubscribeEventDelegate  cb 
)
inlinestatic

订阅事件

参数
eventType事件类型
period订阅有效期,单位:秒,范围:60s到30天
syncType订阅后是否立即同步最新事件,见NIMEventSubscribeSyncType定义

<param name="idList"用户列表>

参数
cb
返回

◆ UnSubscribe()

static bool NIM.NIMSubscribeApi.UnSubscribe ( int  eventType,
List< string >  idList,
UnSubscribeEventDelegate  cb 
)
inlinestatic

按账号取消指定事件的订阅关系

参数
eventType事件类型
idList用户列表
cb
返回

◆ BatchUnSubscribe()

static bool NIM.NIMSubscribeApi.BatchUnSubscribe ( int  eventType,
BatchUnscribeEventDelegate  cb 
)
inlinestatic

取消指定事件的全部订阅关系

参数
eventType事件类型
cb
返回

◆ QuerySubscribe()

static bool NIM.NIMSubscribeApi.QuerySubscribe ( int  eventType,
List< string >  idList,
QuerySubscribeDelegate  cb 
)
inlinestatic

按账号查询指定事件订阅关系

参数
eventType事件类型
idList用户列表
cb
返回

◆ BatchQuerySubscribe()

static bool NIM.NIMSubscribeApi.BatchQuerySubscribe ( int  eventType,
QuerySubscribeDelegate  cb 
)
inlinestatic

查询指定事件的全部订阅关系

参数
eventType事件类型
cb
返回

该类的文档由以下文件生成: