Help Center/ Meeting/ Client SDK Reference/ iOS 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

1. The actual service processing result can be obtained by calling the corresponding callback API.

Method Definition

- (void)joinPairConf:(HWMPairCodeJoinConfParam *_Nonnull)param callback:(_Nonnull HWMSDKCompleteHandler)callback;

Parameter Description

Parameter

Mandatory

Type

Description

param

Yes

HWMPairCodeJoinConfParam *

Parameters for joining a meeting.

Table 1 HWMPairCodeJoinConfParam description

Parameter

Mandatory

Type

Description

url

Yes

NSString *

QR code URL.

confId

Yes

NSString *

Meeting ID.

confPassword

No

NSString *

Meeting password.

Return Values

None

Sample Code

- (void)joinPairConf {
    // Set parameters for joining a meeting.
    HWMPairCodeJoinConfParam *param = [[HWMPairCodeJoinConfParam alloc] init];
    param.url = @"QR code URL";
    param.confId = @"989156631";
    param.confPassword = getPassword();
    // Call the SDK API.
    [[HWMSdk getOpenApi] joinPairConf:param callback:^(NSError * _Nullable error, id  _Nullable result) {
        if (error) {
            [UIUtil showMessageWithError:error];
        } else {
            [UIUtil showMessage:@"Meeting joined."];
        }
    }];
}