Help Center/ Meeting/ Client SDK Reference/ Android SDK/ API Reference/ Meeting Control/ Scanning a QR Code to Invite a Large Screen to a Meeting
Updated on 2024-07-30 GMT+08:00

Scanning a QR Code to Invite a Large Screen to a Meeting

joinPairConf

API Description

This API is used to scan a QR code to invite a large screen to a meeting.

Precautions

None

Method Definition

HWMSdk.getOpenApi(this.getApplication()).joinPairConf(JoinPairConfParam joinPairConfParam, HwmCallback<Void> callback);
Table 1 Parameter description

Parameter

Mandatory

Type

Description

joinPairConfParam

Yes

JoinPairConfParam

Parameters for inviting a large screen to a meeting by scanning a QR code.

callback

Yes

HwmCallback

Callback for inviting a large screen to a meeting by scanning a QR code.

Return Values

None

Parameter Extension

Table 2 JoinPairConfParam description

Parameter

Mandatory

Type

Description

url

Yes

String

QR code URL.

confId

Yes

String

Meeting ID.

confPassword

No

String

Meeting password.

Return Values

None

Sample Code

public void joinPairConf() {
    JoinPairConfParam joinPairConfParam = new JoinPairConfParam();
    joinPairConfParam.setConfId(confId);
    joinPairConfParam.setConfPassword(confPassword);
    joinPairConfParam.setUrl(url);
    HWMSdk.getOpenApi(this.getApplication()).joinPairConf(joinPairConfParam, new HwmCallback<Void>() {
                @Override
                public void onFailed(int retCode, String desc) {
                    showToast(desc);
                }

                @Override
                public void onSuccess(Void unused) {
                    if (successLayout != null) {
                        successLayout.setVisibility(View.VISIBLE);
                    }
                }
            });
}