iOS

# 视频通话插件 - Harmony - v2601.0.11

# 概览

# 访客接口管理

方法 描述
setForeground (opens new window) 设置应用前后台状态
login (opens new window) 初始化并登录
logout (opens new window) 登出并销毁
getClientLoginState (opens new window) 获取当前登录状态
sendOnlineMessage (opens new window) 发送在线消息
sendMessageInCall (opens new window) 发送通话中消息
uploadFile (opens new window) 文件上传
getCallId (opens new window) 获取通话ID
setCustomConfig (opens new window) 设置定制配置参数
setVideoAngle (opens new window) 设置视频旋转角度
miniTalkingWindow (opens new window) 最小化通话窗口
restoreTalkingWindow (opens new window) 恢复通话窗口
getVersion (opens new window) 获取SDK和底层库的版本号信息
miniTalkingWindow (opens new window) 最小化通话窗口
restoreTalkingWindow (opens new window) 恢复通话窗口
queryAllGroups (opens new window) 查询业务组列表
call (opens new window) 发起呼叫
answer (opens new window) 接听来电
term (opens new window) 结束通话
addCallback (opens new window) 订阅回调
removeCallback (opens new window) 取消订阅回调

# 访客事件

事件 描述
onLogin (opens new window) 登录结果回调
onLogout (opens new window) 登出结果回调
onOnlineMessageSendResult (opens new window) 发送在线消息结果
onOnlineMessageReceived (opens new window) 收到在线消息
onMessageInCallReceived (opens new window) 接收通话中消息的回调
onUploadFileResult (opens new window) 文件上传成功回调
onUploadFileError (opens new window) 文件上传失败回调
onError (opens new window) 上报事件回调
onViewEvent (opens new window) UI事件通知回调
onGetAllGroups (opens new window) 查询业务组号回调
onCallStateChanged (opens new window) 通话状态改变回调

# 网络电话接口管理

方法 描述
setForeground (opens new window) 设置应用前后台状态
login (opens new window) 初始化并登录
logout (opens new window) 登出并销毁
getClientLoginState (opens new window) 获取当前登录状态
sendOnlineMessage (opens new window) 发送在线消息
sendMessageInCall (opens new window) 发送通话中消息
uploadFile (opens new window) 文件上传
getCallId (opens new window) 获取通话ID
setCustomConfig (opens new window) 设置定制配置参数
setVideoAngle (opens new window) 设置视频旋转角度
miniTalkingWindow (opens new window) 最小化通话窗口
restoreTalkingWindow (opens new window) 恢复通话窗口
getVersion (opens new window) 获取SDK和底层库的版本号信息
miniTalkingWindow (opens new window) 最小化通话窗口
restoreTalkingWindow (opens new window) 恢复通话窗口
join (opens new window) 加入通话
leave (opens new window) 离开通话
getCallState (opens new window) 获取当前通话状态
acceptInvite (opens new window) 接收邀请
rejectInvite (opens new window) 拒绝邀请
cancelInvite (opens new window) 取消邀请
invite (opens new window) 邀请其他成员加入
addCallback (opens new window) 订阅回调
removeCallback (opens new window) 取消订阅回调

# 网络电话事件

事件 描述
onLogin (opens new window) 登录结果回调
onLogout (opens new window) 登出结果回调
onOnlineMessageSendResult (opens new window) 发送在线消息结果
onOnlineMessageReceived (opens new window) 收到在线消息
onMessageInCallReceived (opens new window) 接收通话中消息的回调
onUploadFileResult (opens new window) 文件上传成功回调
onUploadFileError (opens new window) 文件上传失败回调
onError (opens new window) 上报事件回调
onViewEvent (opens new window) UI事件通知回调
onJoin (opens new window) 加入通话结果回调
onLeave (opens new window) 离开通话结果回调
onCallPropertyChanged (opens new window) 通话属性改变回调
onRejectInviteResult (opens new window) 拒绝邀请结果回调
onAcceptInviteResult (opens new window) 接受邀请结果回调
onAcceptInviteResult (opens new window) 取消邀请结果回调
onInviteResult (opens new window) 邀请结果回调
onInviteReceived (opens new window) 收到邀请通知

# 多方通话接口管理

事件 描述
setForeground (opens new window) 设置应用前后台状态
login (opens new window) 初始化并登录
logout (opens new window) 登出并销毁
getClientLoginState (opens new window) 获取当前登录状态
sendOnlineMessage (opens new window) 发送在线消息
sendMessageInCall (opens new window) 发送通话中消息
uploadFile (opens new window) 文件上传
getCallId (opens new window) 获取通话ID
setCustomConfig (opens new window) 设置定制配置参数
setVideoAngle (opens new window) 设置视频旋转角度
miniTalkingWindow (opens new window) 最小化通话窗口
restoreTalkingWindow (opens new window) 恢复通话窗口
getVersion (opens new window) 获取SDK和底层库的版本号信息
miniTalkingWindow (opens new window) 最小化通话窗口
restoreTalkingWindow (opens new window) 恢复通话窗口
query (opens new window) 查询房间相关信息
join (opens new window) 加入房间
leave (opens new window) 离开房间
getRoomState (opens new window) 获取房间状态
addCallback (opens new window) 订阅回调
removeCallback (opens new window) 取消订阅回调

# 多方通话事件

事件 描述
onLogin (opens new window) 登录结果回调
onLogout (opens new window) 登出结果回调
onOnlineMessageSendResult (opens new window) 发送在线消息结果
onOnlineMessageReceived (opens new window) 收到在线消息
onMessageInCallReceived (opens new window) 接收通话中消息的回调
onUploadFileResult (opens new window) 文件上传成功回调
onUploadFileError (opens new window) 文件上传失败回调
onError (opens new window) 上报事件回调
onViewEvent (opens new window) UI事件通知回调
onQuery (opens new window) 查询房间信息结果回调
onJoin (opens new window) 加入房间结果回调
onLeave (opens new window) 离开房间结果回调
onRoomStateChanged (opens new window) 房间状态变化回调