#import <Foundation/Foundation.h>
浏览源代码.
◆ NIMEventSubscribeQueryBlock
typedef void(^ NIMEventSubscribeQueryBlock) (NSError *__nullable error, NSArray *__nullable results) |
◆ NIMEventSubscribeResponseBlock
typedef void(^ NIMEventSubscribeResponseBlock) (NSError *__nullable error, NSArray *__nullable failedPublishers) |
订阅/取消订阅事件回调
- 参数
-
error | 错误信息,如果成功,error 为 nil, |
failedPublishers | 失败的发布者 Id, 为 nil 则全部订阅/取消订阅成功 |
◆ NIMEventSubscribeBlock
NS_ASSUME_NONNULL_BEGIN typedef void(^ NIMEventSubscribeBlock) (NSError *__nullable error, NIMSubscribeEvent *__nullable event) |
( |
NSError *__nullable |
error, |
|
|
NIMSubscribeEvent *__nullable |
event |
|
) |
| |
事件普通回调
- 参数
-
error | 错误信息,如果成功,error 为 nil |
event | 事件,填充了发布的时间 |