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

Customizing the Recording Button

buildRecordMenuItems

API Description

This API is used to customize whether the recording status bar can be touched.

Figure 1 Customizable location

Precautions

  1. If no item is returned, the bar cannot be touched.

Method Definition

1
- (NSArray <HWMConfStatusBarMenuItem *> *)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<HWMConfStatusBarMenuItem *> *)buildRecordMenuItems {
    HWMConfStatusBarMenuItem *recordItem = [HWMConfStatusBarMenuItem defaultRecordItem];
    // If the recording status bar cannot be touched, return an empty array.
    return @[recordItem];
}