LVIMModuleEventDelegate Protocol Reference

Conforms to NSObject
Declared in LVIMConfig.h

– onQueryIMToken required method

请求token的事件 *

- (void)onQueryIMToken

Declared In

LVIMConfig.h

– onIMConnected: required method

连接成功事件(暂不提供)

- (void)onIMConnected:(void *)context

Parameters

context

状态信息 *

Declared In

LVIMConfig.h

– onIMLosted required method

连接断开事件(暂不提供) *

- (void)onIMLosted

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