扫码邀请大屏入会
joinPairConf
接口描述
该接口用于扫码邀请大屏入会。
注意事项
1. 仅鸿蒙移动端支持。
方法定义
1
|
joinPairConf(joinPairConfParam: HWMJoinPairConfParamModel): Promise<HWMCommonResult>; |
参数描述
参数 |
是否必须 |
类型 |
描述 |
---|---|---|---|
joinPairConfParam |
是 |
HWMJoinPairConfParamModel |
扫码邀请大屏入会参数。 |
参数 |
是否必须 |
类型 |
描述 |
---|---|---|---|
confId |
是 |
string |
会议ID。 |
confPassword |
否 |
string |
会议密码。 |
url |
是 |
string |
二维码url。 |
返回值
参数 |
类型 |
描述 |
---|---|---|
result |
SDKERR |
接口调用结果,HWM_SDKERR_SUCCESS表示成功,详细请参考错误码参考。 |
reasonDesc |
string |
错误描述。 |
示例代码
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
/** * 扫码邀请大屏入会 */ handleJoinPairConf(){ const model: HWMJoinPairConfParamModel = { confId: this.getConfId(), confPassword: this.getPwd(), url: this.getUrl(), }; UISDK.getConfCtrlApi().joinPairConf(model).then((res: HWMCommonResult) => { const message: string = res.result === SDKERR.HWM_SDKERR_SUCCESS ? '大屏入会成功' : '大屏入会失败'; console.log(message); }) } |