Help Center/ Meeting/ Client SDK Reference/ macOS SDK/ APIs/ UI Customization/ Customizing the Contact Selection Window
Updated on 2024-07-30 GMT+08:00

Customizing the Contact Selection Window

openContactSelectWindow:scene:completeHander:

API Description

This API is used to customize the contact selection window.

Figure 1 Location where contact selection is triggered

Precautions

None

Method Definition

1
- (void)openContactSelectWindow:(NSArray<HWMAttendeeInfo *> *)param scene:(HWMSelectedContactScene)scene completeHander:(void (^)(NSArray<HWMAttendeeInfo *> * _Nullable))handler ;

Parameter Description

None

Return Values

None

Sample Code

- (void)openContactSelectWindow:(NSArray<HWMAttendeeInfo *> *)param scene:(HWMSelectedContactScene)scene completeHander:(void (^)(NSArray<HWMAttendeeInfo *> * _Nullable))handler {
    HWMSelectContactViewController *contact = [[HWMSelectContactViewController alloc] init];
    [contact setSelectAttendeeInfoHandler:^(NSArray *attendees) {
        if (handler) {
            handler(attendees);
        }
    }];
    self.selectContactVC = contact;
    [self presentViewControllerAsModalWindow:contact];
}