LVIMReceiveMessageDelegate Protocol Reference
Conforms to | NSObject |
---|---|
Declared in | LVIMConfig.h |
– onIMReceiveMessageFilter:fromid:toid:msgtype:content:waitings:packetSize:waitLength:bufferSize:
required method
消息过滤器
- (BOOL)onIMReceiveMessageFilter:(int32_t)diytype fromid:(const char *)fromid toid:(const char *)toid msgtype:(const char *)msgtype content:(const char *)content waitings:(int)waitings packetSize:(int)packetSize waitLength:(int)waitLength bufferSize:(int)bufferSize
Parameters
diytype |
消息类型的CRC32 |
---|---|
fromid |
发送者ID |
toid |
接收者ID |
msgtype |
类型别名 |
content |
消息内容 |
waitings |
队列中等待处理的消息数量 |
packetSize |
当前数据包大小 |
waitLength |
等待处理的大小 |
bufferSize |
缓冲区最大大小 |
Return Value
过滤丢弃掉这个消息返回YES, 继续处理返回NO *
Declared In
LVIMConfig.h
– onIMReceiveMessageHandler:immsg:waitings:packetSize:waitLength:bufferSize:
required method
消息返回处理
- (int)onIMReceiveMessageHandler:(NSString *)owner immsg:(LVIMMessage *)immsg waitings:(int)waitings packetSize:(int)packetSize waitLength:(int)waitLength bufferSize:(int)bufferSize
Parameters
owner |
这个消息属于哪个登陆用户 |
---|---|
immsg |
消息内容 |
waitings |
队列中等待处理的消息数量 |
packetSize |
当前数据包大小 |
waitLength |
等待处理的大小 |
bufferSize |
缓冲区最大大小 |
Return Value
处理成功返回0, 否则返回非0
Discussion
Warning: 如果返回非0, 则这条消息会在下次冷启动或再次检测到时继续调用本方法 *
Declared In
LVIMConfig.h