更新时间:2025-10-13 GMT+08:00
分享

扫码邀请大屏入会

joinPairConf

接口描述

该接口用于扫码邀请大屏入会。

注意事项

1. 仅鸿蒙移动端支持。

方法定义

1
joinPairConf(joinPairConfParam: HWMJoinPairConfParamModel): Promise<HWMCommonResult>;

参数描述

参数

是否必须

类型

描述

joinPairConfParam

HWMJoinPairConfParamModel

扫码邀请大屏入会参数。

表1 HWMJoinPairConfParamModel参数说明

参数

是否必须

类型

描述

confId

string

会议ID。

confPassword

string

会议密码。

url

string

二维码url。

返回值

表2 HWMCommonResult参数说明

参数

类型

描述

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);
    })
}

相关文档