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

Customizing the Status Bar Menu

You can customize the status bar in OpenSDKConfig.

Application Scenarios

Hide the recording button on the status bar.

Precautions

1. sdkConfig takes effect only when this configuration is passed during SDK initialization.

Sample Code

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
public class CustomStatusBarMenuHandle implements IStatusBarMenuStrategy {
    @Override
    public List<IConfMenu> buildRecordMenuItems() {
        List<IConfMenu> confMenus = new ArrayList<>();
        // If the recording button does not need to be displayed on the status bar in the upper left corner of a meeting, comment out the following code.
        confMenus.add(new StatusBarRecordMenu());
        return confMenus;
    }
}

sdkConfig.setStatusBarMenuStrategy(new CustomStatusBarMenuHandle ());