座席相关事件回调
更多...
#import <JRTCAgentCallback.h>
◆ onApplyResult:result:
| - (void) onApplyResult: |
|
(int) |
operationId |
| result: |
|
(bool) |
result |
|
|
| |
◆ onCallPropertyChanged:
◆ onCallQueryWaitCount:
| - (void) onCallQueryWaitCount: |
|
(int) |
count |
|
当前排队人数上报回调
- 参数
-
| count | 当前排队人数,不包含已经分配座席但是未接听的访客成员 |
◆ onCallStateChanged:incomingType:inviter:reason:
◆ onCallTypeChanged:
| - (void) onCallTypeChanged: |
|
(CallType) |
callType |
|
◆ onCheckIn:pause:onlineTime:breakTime:callTimes:reason:
| - (void) onCheckIn: |
|
(bool) |
result |
| pause: |
|
(bool) |
pause |
| onlineTime: |
|
(long) |
onlineTime |
| breakTime: |
|
(long) |
breakTime |
| callTimes: |
|
(long) |
callTimes |
| reason: |
|
(int) |
reason |
|
|
| |
签入回调
座席调用 checkIn 接口成功,会收到此回调。
- 参数
-
| result | 签入结果
|
| pause | 签入后的示闲/示忙状态
|
| onlineTime | 座席累计在线时长 |
| breakTime | 座席累计示忙时长 |
| callTimes | 通话次数 |
| reason | 签入失败原因 |
◆ onCheckin:pause:reason:
| - (void) onCheckin: |
|
(bool) |
result |
| pause: |
|
(bool) |
pause |
| reason: |
|
(NSString *) |
reason |
|
|
| |
签入回调
座席调用 checkIn 接口成功,会收到此回调。
- 参数
-
| result | 签入结果
|
| pause | 签入后的示闲/示忙状态
|
| reason | 签入失败原因 |
◆ onCheckout:reason:
◆ onCheckStateChanged:oldState:
签入/签出状态改变
座席签入/签出状态发生改变时,会收到此回调,例如,调用签入/签出接口。
- 参数
-
| currentState | 当前座席状态 |
| oldState | 旧的座席状态 |
◆ onDeliveryAbort:deliveryUserId:reason:
| - (void) onDeliveryAbort: |
|
(bool) |
isShutDown |
| deliveryUserId: |
|
(NSString *) |
deliveryUserId |
| reason: |
|
(NSString *) |
reason |
|
|
| |
录制异常回调
远程录制异常退出时会上报此回调。
- 参数
-
| isShutDown | 录制异常时服务器是否自动结束通话
- true: 自动结束通话
- false: 不自动结束通话
|
| deliveryUserId | 录制异常的用户ID |
| reason | 录制异常的原因 |
◆ onGetAllGroups:result:
获取业务号列表结果回调
座席调用 queryAllGroups 接口获取业务号列表,会收到此回调。
- 参数
-
| groups | 座席业务实体对象列表,获取失败时为 nil |
| result | 获取结果
|
◆ onHoldStateChanged:
| - (void) onHoldStateChanged: |
|
(bool) |
hold |
|
收到通话保持或取回的回调
通话中座席可调用 setHoldState 接口保持通话或取回通话,通话中所有成员都会收到此回调。
- 参数
-
| hold | true 表示通话被保持,false 表示通话取回 |
◆ onInviteThirdAgentResult:error:
| - (void) onInviteThirdAgentResult: |
|
(bool) |
result |
| error: |
|
(NSString *) |
error |
|
|
| |
邀请座席结果回调
- 参数
-
| result | 邀请座席结果
|
| error | 邀请座席失败原因 |
◆ onInviteThirdGuestResult:userId:error:
| - (void) onInviteThirdGuestResult: |
|
(bool) |
result |
| userId: |
|
(NSString *) |
userId |
| error: |
|
(NSString *) |
error |
|
|
| |
邀请第三方访客结果回调
- 参数
-
| result | 邀请第三方访客结果
|
| userId | 访客用户ID |
| error | 邀请第三方访客失败原因,仅在失败时生效 |
◆ onKickParticipantResult:operationId:error:
| - (void) onKickParticipantResult: |
|
(bool) |
result |
| operationId: |
|
(long) |
operationId |
| error: |
|
(NSString *) |
error |
|
|
| |
◆ onMemberJoin:
通话中有新成员加入回调
当第三方成员加入通话时,已在通话中的所有成员会收到此回调,而新加入的成员不会收到此回调。
- 参数
-
◆ onMemberLeave:
通话中有成员离开回调
通话中有成员离开通话时,剩余的成员会收到此回调,而离开的成员不会收到此回调。
- 参数
-
◆ onMemberUpdate:changeParam:
通话中成员属性更新回调
常用的有 音量值、音频上传状态、视频上传状态等。
例如当通话中有成员关闭视频传输,通话中所有成员都会收到此回调。
- 参数
-
| participant | 属性更新的成员对象 |
| changeParam | 更新的属性对象 |
◆ onMessageReceived:contentType:messageType:fromUserId:
| - (void) onMessageReceived: |
|
(NSString *) |
content |
| contentType: |
|
(NSString *) |
contentType |
| messageType: |
|
(MessageType) |
messageType |
| fromUserId: |
|
(NSString *) |
fromUserId |
|
|
| |
收到消息回调
通话中的访客和座席可分别调用 sendMessage 和 sendMessage 接口给通话中的指定成员或全体成员发送消息,对应的成员会收到此回调,由此获取消息具体信息。
- 参数
-
| content | 消息内容 |
| contentType | 消息内容类型 |
| messageType | 消息归属类型
|
| fromUserId | 发送方的用户ID |
◆ onNotifyMessageReceived:fromUserId:
| - (void) onNotifyMessageReceived: |
|
(JRTCNotifyMessage *) |
notifyMessage |
| fromUserId: |
|
(NSString *) |
fromUserId |
|
|
| |
◆ onOnewayVideoChanged:
| - (void) onOnewayVideoChanged: |
|
(bool) |
turnOn |
|
收到单向视频变化回调
通话中座席调用 requestOnewayVideo 请求单向视频,所有成员都会收到此回调。
收到此回调后,应用需要自行实现单向视频功能,例如用图片遮挡该座席画面,SDK不会对画面进行单向处理。
- 参数
-
◆ onQueryAvailableAgentList:result:userIds:
| - (void) onQueryAvailableAgentList: |
|
(int) |
operationId |
| result: |
|
(bool) |
result |
| userIds: |
|
(NSArray< NSString * > *) |
userIds |
|
|
| |
◆ onResponseUrgentResult:cookie:
| - (void) onResponseUrgentResult: |
|
(bool) |
result |
| cookie: |
|
(int) |
cookie |
|
|
| |
◆ onSignResultResponse:fromUserId:extraInfo:
| - (void) onSignResultResponse: |
|
(bool) |
result |
| fromUserId: |
|
(NSString *) |
fromUserId |
| extraInfo: |
|
(NSString *) |
extraInfo |
|
|
| |
收到访客签名请求结果回调
通话中访客调用 responseSignResult 接口给座席发送签名请求结果,座席会收到此回调。
- 参数
-
| result | 签名结果
|
| fromUserId | 响应签名请求结果的访客用户ID |
| extraInfo | 随路额外消息 |
◆ onSwitchPartRoleResult:operationId:error:
| - (void) onSwitchPartRoleResult: |
|
(bool) |
result |
| operationId: |
|
(long) |
operationId |
| error: |
|
(NSString *) |
error |
|
|
| |
切换自己在通话中角色结果回调
- 参数
-
| operationId | 操作id,对应 switchPartRole 接口的返回值 |
| result | 切换自己在通话中角色结果
|
| error | 切换自己在通话中角色操作失败原因 |
◆ onTransferCallResult:result:
| - (void) onTransferCallResult: |
|
(int) |
operationId |
| result: |
|
(bool) |
result |
|
|
| |
◆ onUrgentRequest:callerNumber:
| - (void) onUrgentRequest: |
|
(NSString *) |
serialNumber |
| callerNumber: |
|
(NSString *) |
callerNumber |
|
|
| |
收到加急请求回调
访客在排队过程中调用 requestUrgent 接口发起加急请求成功后,管理员权限的座席(业务管理平台配置)会收到此回调。
座席收到回调后可调用 responseUrgent 接口对加急请求进行处理,接口的参数从此回调中获得。
- 参数
-
| serialNumber | 服务唯一标识 |
| callerNumber | 发起加急请求的用户ID |