Help Center> Meeting> Client SDK Reference> macOS SDK> APIs> UI Customization> Customizing the More Menu on the Bottom Toolbar
Updated on 2023-03-23 GMT+08:00

Customizing the More Menu on the Bottom Toolbar

meetingToolbarMoreMenuItems

API Description

This API is used to customize the options in the More menu on the meeting control toolbar.

Figure 1 Options in the More menu on the meeting control toolbar

Precautions

None

Method Definition

1
- (nullable NSArray <HWMMenuItemModel *> *)meetingToolbarMoreMenuItems;

Parameter Description

None

Return Values

None

Sample Code

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
// Customize the More menu on the bottom toolbar.
- (nullable NSArray <HWMMenuItemModel *> *)meetingToolbarMoreMenuItems {
    // Network detection
    HWMMenuItemModel *netWorkDetectionItem = [HWMMenuItemModel defaultNetworkDectectionModel];
    // Custom option
    HWMMenuItemModel *customItem = [[HWMMenuItemModel alloc]init];
    customItem.title = @"Custom option";
    customItem.image = [NSImage imageNamed:@"icon-customize-select-normal"];
    HWMMenuItemModel *subItem1 = [[HWMMenuItemModel alloc]init];
    subItem1.title = @"Sub-option 1";
    HWMMenuItemModel *subItem2 = [[HWMMenuItemModel alloc]init];
    subItem2.title = @"Sub-option 2";
    customItem.submenus = @[subItem1,subItem2];
    return @[netWorkDetectionItem, customItem];
}