Updated on 2023-03-23 GMT+08:00

Adding Participants

addAttendee

API Description

This API is used to add a participant to a meeting.

Precautions

  1. Only the host in the meeting can add participants.

Method Definition

1
- (void)addAttendee:(NSArray<HWMContactSelectedModel *> *)params completeHandler:(HWMSDKCompleteHandler)handler;

Parameter Description

Table 1 HWMContactSelectedModel description

Parameter

Mandatory

Type

Description

name

Yes

NSString *

Site name.

number

Yes

NSString *

Number. If this parameter is set to the SIP number (for example, +99111244216210249) allocated to the account, the Huawei Cloud Meeting app is called. If this parameter is set to a PSTN number (for example, 18700000000), the number is called through the VoIP gateway if the enterprise has enabled PSTN call. This parameter is used for account and password authentication. Either this parameter or thirdUserId must be set.

thirdUserId

Yes

NSString *

Third-party user ID. This parameter is used for app ID authentication. Either this parameter or number must be set.

Sample Code

1
2
3
4
/// Add participants during the meeting.
[[HWMSdk getOpenApi] addAttendee:attendee completeHandler:^(NSError * _Nullable error, id  _Nullable result) {
    [UIUtil showMessage:@"Invitation succeeded." error:error];
}];