JRTCSDK-iOS
v1.1
API文档
|
构造函数 | |
(void) | - onLogin:reason: |
(void) | - onLogout: |
(void) | - onClientStateChange:oldState: |
(void) | - onOnlineMessageSendResult:operatorId: |
(void) | - onOnlineMessageReceived:userId: |
(void) | - onSDKEvent: |
- (void) onClientStateChange: | (JCClientState) | state | |
oldState: | (JCClientState) | oldState | |
登录状态变化通知
state | 当前状态值 |
oldState | 之前状态值 |
- (void) onLogin: | (bool) | result | |
reason: | (ReasonCode) | reason | |
登录结果回调
result | true 表示登录成功,false 表示登录失败 |
reason | 当 result 为 false 时该值有效 |
- (void) onLogout: | (ReasonCode) | reason |
登出回调
reason | 登出原因 |
- (void) onOnlineMessageReceived: | (NSString *) | message | |
userId: | (NSString *) | userId | |
收到在线消息回调
message | 消息内容 |
userId | 对方userId |
- (void) onOnlineMessageSendResult: | (bool) | result | |
operatorId: | (int) | operatorId | |
在线消息发送结果回调
result | 发送结果是否成功
|
operatorId | 操作id,对应 sendOnlineMessage 的返回值 |
- (void) onSDKEvent: | (JRTCSDKEvent *) | event |
上报事件回调
event | 事件对象 |