更新时间:2024-07-30 GMT+08:00
场景7:添加与会者
描述
在会议中,可以调用添加与会人的接口把与会人加入到会议中。
业务流程
使用SDK添加与会人时,需要自定义加人界面, 选择要添加的联系人,之后把选中的联系人添加到会议中。
1.Mac SDK 仅支持自定义添加与会者。
示例代码
/// 自定义联系人 - (void)openContactSelectWindow:(NSArray<HWMAttendeeInfo *> *)param scene:(HWMSelectedContactScene)scene completeHander:(void (^)(NSArray<HWMAttendeeInfo *> * _Nullable))handler { HWMSelectContactViewController *contact = [[HWMSelectContactViewController alloc] init]; [contact setSelectAttendeeInfoHandler:^(NSArray *attendees) { NSMutableArray *arr = @[].mutableCopy; for (HWMContactInfoModel *model in attendees) { HWMAttendeeInfo *info = [[HWMAttendeeInfo alloc] init]; info.accountId = model.accountId; info.name = model.name; info.number = model.number; info.thirdUserId = model.thirdUserId; info.email = model.email; info.mute = model.mute; info.role = model.role; info.sms = model.sms; [arr addObject:info]; } if (handler) { handler(arr); } }]; self.selectContactVC = contact; [self presentViewControllerAsModalWindow:contact]; }
父主题: 典型场景