Updated on 2024-07-30 GMT+08:00

Notification of Opening the Contact Selection Window

Notification Description

A notification is sent when the SDK opens the contact selection window for a participant to return custom contacts.

Method Definition

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

Sample Code

/// Customize contacts.
- (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];
}

Precautions

  1. Set the contactUIHandler proxy during SDK initialization or set the proxy on the target page.

Parameter Description

Table 1 Parameter description

Parameter

Type

Description

param

NSArray<HWMAttendeeInfo *> *

Existing contacts in the meeting.

scene

HWMSelectedContactScene

Contact selection scenario. By default, it is in the meeting.

handler

void(^)(NSArray<HWMAttendeeInfo *> *_Nullable result)

Result. A participant needs to encapsulate selected contacts into HWMAttendeeInfo and call the handler to return it to the SDK.

Table 2 Enumerated values of HWMSelectedContactScene

Parameter

Description

HWMSelectedContactInConf = 0

In the common meeting, modal and non-modal dialog boxes can be used for window display.

HWMSelectedContactInShare

In the sharing scenario of the meeting, non-modal dialog boxes are used for window display. Modal dialog boxes are not recommended.