NIMEventSubscribeManager Protocol Reference
Conforms to | NSObject |
---|---|
Declared in | NIMEventSubscribeManagerProtocol.h |
– publishEvent:completion:
required method
发布事件
- (void)publishEvent:(NIMSubscribeEvent *)event completion:(nullable NIMEventSubscribeBlock)completion
Parameters
event |
需要广播的事件,事件可被其他人订阅 |
---|---|
completion |
完成回调 |
Discussion
发布事件
Declared In
NIMEventSubscribeManagerProtocol.h
– subscribeEvent:completion:
required method
订阅事件
- (void)subscribeEvent:(NIMSubscribeRequest *)request completion:(nullable NIMEventSubscribeResponseBlock)completion
Parameters
request |
订阅请求 |
---|---|
completion |
完成回调 |
Discussion
订阅事件
请求中必需填写 type,expiry,publishers 字段
Declared In
NIMEventSubscribeManagerProtocol.h
– unSubscribeEvent:completion:
required method
取消订阅事件
- (void)unSubscribeEvent:(NIMSubscribeRequest *)request completion:(nullable NIMEventSubscribeResponseBlock)completion
Parameters
request |
取消订阅请求 |
---|---|
completion |
完成回调 |
Discussion
取消订阅事件
请求中必须填写 type 字段 , 如果不填写 publishers 字段,则取消指定事件的全部订阅关系
Declared In
NIMEventSubscribeManagerProtocol.h
– querySubscribeEvent:completion:
required method
查询订阅事件
- (void)querySubscribeEvent:(NIMSubscribeRequest *)request completion:(nullable NIMEventSubscribeQueryBlock)completion
Parameters
request |
查询请求 |
---|---|
completion |
完成回调 |
Discussion
查询订阅事件
请求中必须填写 type 字段 和 publishers 字段
Declared In
NIMEventSubscribeManagerProtocol.h
– addDelegate:
required method
添加通知对象
- (void)addDelegate:(id<NIMEventSubscribeManagerDelegate>)delegate
Parameters
delegate |
通知对象 |
---|
Discussion
添加通知对象
Declared In
NIMEventSubscribeManagerProtocol.h
– removeDelegate:
required method
移除通知对象
- (void)removeDelegate:(id<NIMEventSubscribeManagerDelegate>)delegate
Parameters
delegate |
通知对象 |
---|
Discussion
移除通知对象
Declared In
NIMEventSubscribeManagerProtocol.h