Help Center> Meeting> Client SDK Reference> iOS SDK> Typical Scenarios> Scenario 4: Adding Participants
Updated on 2023-03-23 GMT+08:00

Scenario 4: Adding Participants

Description

You can call the API for adding participants during a meeting.

Service Process

If you need to add participants using the SDK, open the contact list, select the contacts to be added, and add the selected contacts to the meeting. You can also customize the page for adding participants. For details, see Customizing a Contact Selection UI.

1. If you log in using an app ID, you are advised to customize a contact selection page.

2. If you do not customize such a page, there is no need to add sample code to the project.

Sample Code

1
2
3
4
5
6
7
8
/// Customize a contact selection UI.
- (void)openContactSelectPage:(NSArray<HWMConfContactModel *> *)param
                        scene:(HWMSelectedContactScene)scene
               completeHander:(void(^)(NSArray<HWMContactSelectedModel *> *result, NSError *error))handler {
    NSLog(@"enter open contact select page");
    ContactSelectViewController * contactSelectVc = [[ContactSelectViewController alloc] initWithResultHandler:handler];
    [self pushViewControllerWithVc:contactSelectVc];
}