LVIMModuleEventDelegate Protocol Reference
Conforms to | NSObject |
---|---|
Declared in | LVIMConfig.h |
– onIMConnected:
required method
连接成功事件(暂不提供)
- (void)onIMConnected:(void *)context
Parameters
context |
状态信息 * |
---|
Declared In
LVIMConfig.h
– onIMAuthSuccessed:token:unReadMsgSize:
required method
认证成功事件
- (void)onIMAuthSuccessed:(NSString *)uid token:(NSString *)token unReadMsgSize:(int)unReadMsgSize
Parameters
uid |
用户ID |
---|---|
token |
token (IM) |
unReadMsgSize |
未读消息数量(粗略) * |
Declared In
LVIMConfig.h
– onIMAuthFailed:token:ecode:rcode:expired:
required method
认证失败事件
- (void)onIMAuthFailed:(NSString *)uid token:(NSString *)token ecode:(int)ecode rcode:(int)rcode expired:(BOOL)expired
Parameters
uid |
用户ID |
---|---|
token |
认证码(im) |
ecode |
错误码 |
rcode |
响应码 |
expired |
是否是过期了 * |
Declared In
LVIMConfig.h
– onIMTokenExpired:token:owner:
required method
认证过期
- (void)onIMTokenExpired:(NSString *)uid token:(NSString *)token owner:(NSString *)owner
Parameters
uid |
用户ID |
---|---|
token |
认证码(im) |
owner |
所属者 * |
Declared In
LVIMConfig.h