NERTCCallkit iOS API  V1.8.0
构造函数 | 所有成员列表
<NERtcCallKitDelegate>协议 参考

Project version number for NERtcCallKit. 更多...

#import <NERtcCallKit.h>

类 <NERtcCallKitDelegate> 继承关系图:

构造函数

(void) - onInvited:userIDs:isFromGroup:groupID:type:
 
(void) - onInvited:userIDs:isFromGroup:groupID:type:attachment:
 
(void) - onUserEnter:
 
(void) - onUserReject:
 
(void) - onUserCancel:
 
(void) - onUserLeave:
 
(void) - onUserDisconnect:
 
(void) - onUserAccept:
 
(void) - onUserBusy:
 
(void) - onCallTypeChange:withState:
 
(void) - onCallTypeChange:
 
(void) - onCallEnd
 通话结束
 
(void) - onCallingTimeOut
 呼叫超时
 
(void) - onDisconnect:
 
(void) - onError:
 发生错误
 
(void) - onCameraAvailable:userID:
 
(void) - onAudioAvailable:userID:
 
(void) - onVideoMuted:userID:
 
(void) - onAudioMuted:userID:
 
(void) - onJoinChannel:
 
(void) - onFirstVideoFrameDecoded:width:height:
 
(void) - onUserNetworkQuality:
 
(void) - onOtherClientAccept
 呼叫请求已被其他端接收的回调
 
(void) - onOtherClientReject
 呼叫请求已被其他端拒绝的回调
 
(void) - onNERtcEngineUser:videoMuted:
 远端用户暂停或恢复发送视频流回调。
 
(void) - onNERtcEngineUserVideoDidStartWithUserID:videoProfile:
 

详细描述

Project version number for NERtcCallKit.

Project version string for NERtcCallKit.

函数文档

◆ onAudioAvailable:userID:

- (void) onAudioAvailable: (BOOL)  available
userID: (NSString *)  userID 
optional

启用/禁用麦克风

参数
available是否可用
userID用户userID

◆ onAudioMuted:userID:

- (void) onAudioMuted: (BOOL)  muted
userID: (NSString *)  userID 
optional

音频采集变更回调

参数
muted是否关闭采集
userID用户ID

◆ onCallTypeChange:

- (void) onCallTypeChange: ("use -onCallTypeChange:withState: instead")  NERtcCallKitDeprecate
optional

通话类型切换的回调(仅1对1呼叫有效)

参数
callType切换后的类型

◆ onCallTypeChange:withState:

- (void) onCallTypeChange: (NERtcCallType)  callType
withState: (NERtcSwitchState)  state 
optional

通话类型切换的回调(仅1对1呼叫有效)

参数
callType切换后的类型
state切换应答类型: 邀请/同意/拒绝

◆ onCameraAvailable:userID:

- (void) onCameraAvailable: (BOOL)  available
userID: (NSString *)  userID 
optional

启用/禁用相机

参数
available是否可用
userID用户ID

◆ onDisconnect:

- (void) onDisconnect: (NSError *)  reason
optional

连接断开

参数
reason断开原因

◆ onFirstVideoFrameDecoded:width:height:

- (void) onFirstVideoFrameDecoded: (NSString *)  userID
width: (uint32_t)  width
height: (uint32_t)  height 
optional

首帧解码成功的回调

参数
userID用户id
width宽度
height高度

◆ onInvited:userIDs:isFromGroup:groupID:type:

- (void) onInvited: (NSString *)  invitor
userIDs: (NSArray< NSString * > *)  userIDs
isFromGroup: (BOOL)  isFromGroup
groupID: (nullable NSString *)  groupID
type: ("use -onInvited:userIDs:isFromGroup:groupID:type:attachment: instead")  NERtcCallKitDeprecate 
optional

收到邀请的回调

参数
invitor邀请方
userIDs房间中的被邀请的所有人(不包含邀请者)
isFromGroup是否是群组
groupID群组ID
type通话类型

◆ onInvited:userIDs:isFromGroup:groupID:type:attachment:

- (void) onInvited: (NSString *)  invitor
userIDs: (NSArray< NSString * > *)  userIDs
isFromGroup: (BOOL)  isFromGroup
groupID: (nullable NSString *)  groupID
type: (NERtcCallType)  type
attachment: (nullable NSString *)  attachment 
optional

收到邀请的回调

参数
invitor邀请方
userIDs房间中的被邀请的所有人(不包含邀请者)
isFromGroup是否是群组
groupID群组ID
type通话类型

◆ onJoinChannel:

- (void) onJoinChannel: (NERtcCallKitJoinChannelEvent *)  event
optional

自己加入成功的回调,通常用来上报、统计等

参数
event回调参数

◆ onUserAccept:

- (void) onUserAccept: (NSString *)  userID
optional

用户接受邀请的回调

参数
userID用户userID

◆ onUserBusy:

- (void) onUserBusy: (NSString *)  userID
optional

忙线

参数
userID忙线的用户ID

◆ onUserCancel:

- (void) onUserCancel: (NSString *)  userID
optional

取消邀请的回调

参数
userID邀请方

◆ onUserDisconnect:

- (void) onUserDisconnect: (NSString *)  userID
optional

用户异常离开的回调

参数
userID用户userID

◆ onUserEnter:

- (void) onUserEnter: (NSString *)  userID
optional

接受邀请的回调

参数
userID接受者

◆ onUserLeave:

- (void) onUserLeave: (NSString *)  userID
optional

用户离开的回调.

参数
userID用户userID

◆ onUserNetworkQuality:

- (void) onUserNetworkQuality: (NSDictionary< NSString *, NERtcNetworkQualityStats * > *)  stats
optional

网络状态监测回调

参数
statskey为用户ID, value为对应网络状态

◆ onUserReject:

- (void) onUserReject: (NSString *)  userID
optional

拒绝邀请的回调

参数
userID拒绝者

◆ onVideoMuted:userID:

- (void) onVideoMuted: (BOOL)  muted
userID: (NSString *)  userID 
optional

视频采集变更回调

参数
muted是否关闭采集
userID用户ID

该协议的文档由以下文件生成: