视频客服插件 - iOS v2401.0
|
构造函数 | |
(void) | - onLogin:reason: |
登录结果回调 | |
(void) | - onLogout: |
登出回调 | |
(void) | - onOnlineMessageSendResult:operatorId: |
在线消息发送结果 | |
(void) | - onOnlineMessageReceived:userId: |
收到在线消息 | |
(void) | - onUploadFileResult:response: |
文件上传成功 | |
(void) | - onUploadFileError:error: |
文件上传失败 | |
(void) | - onMessageInCallReceived:content:fromUserId: |
接收通话中消息的回调 | |
(void) | - onError:errorCodeDetail: |
(void) | - onSystemPhoneStateChanged:oldState: |
(BOOL) | - onViewEvent: |
- (void) onError: | (NSString *) | errorCode | |
errorCodeDetail: | (NSString *) | errorCodeDetail | |
上报事件回调
errorCode | 错误码 |
errorCodeDetail | 错误信息 |
- (void) onLogin: | (BOOL) | result | |
reason: | (JCCReasonCode) | reason | |
登录结果回调
result | true 表示登录成功,false 表示登录失败 |
reason | 当 result 为 false 时该值有效 |
- (void) onLogout: | (JCCReasonCode) | reason |
登出回调
reason | 登出原因 |
- (void) onMessageInCallReceived: | (NSString *) | type | |
content: | (NSString *) | content | |
fromUserId: | (NSString *) | fromUserId | |
接收通话中消息的回调
type | 消息类型 |
content | 消息内容 |
fromUserId | 消息发送成员的userId |
- (void) onOnlineMessageReceived: | (NSString *) | message | |
userId: | (NSString *) | userId | |
收到在线消息
message | 消息内容 |
userId | 对方 ID |
- (void) onOnlineMessageSendResult: | (BOOL) | result | |
operatorId: | (int) | operatorId | |
在线消息发送结果
result | 发送结果是否成功
|
operatorId | 操作ID,对应 sendOnlineMessage 的返回值 |
- (void) onSystemPhoneStateChanged: | (SystemPhoneState) | newState | |
oldState: | (SystemPhoneState) | oldState | |
系统通话状态变化
newState | 当前通话状态 |
oldState | 之前通话状态 |
- (void) onUploadFileError: | (NSString *) | fileName | |
error: | (NSError *) | error | |
文件上传失败
fileName | 文件名 |
error | 错误原因 |
- (void) onUploadFileResult: | (NSString *) | fileName | |
response: | (NSDictionary *) | response | |
文件上传成功
fileName | 文件名 |
response | 参数 |
|
optional |
UI事件通知
viewEvent | 事件类型 |