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

Customizing the Recording Button

buildRecordMenuItems

API Description

This API is used to customize whether to hide the recording button next to the recording status bar.

Figure 1 Customizable location

Precautions

  1. Currently, only the button on the right of the recording status bar can be hidden. If no item is passed, the button will be hidden.

Method Definition

1
- (NSArray <HWMStatusBarItemModel  *> *)buildRecordMenuItems;

Parameter Description

None

Return Values

None

Sample Code
1
2
3
4
5
6
/// Customize the recording button next to the recording status bar.
- (NSArray <HWMStatusBarItemModel  *> *)buildRecordMenuItems {
    HWMStatusBarItemModel *recordItem = [WKCFStatusBarItemModel defaultStatusBarRecordMenu];
    // If the operation button on the right of the recording status bar is not required, leave the array empty.
    return @[recordItem];
}