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

Displaying the Settings Window

showSettingWindowWithInfo

API Description

This API is used to display the settings window.

Method Definition

1
- (void)showSettingWindowWithInfo:(HWMUISDKShowSettingWindowInfoModel *)info;

Parameter Description

Table 1 Parameter description

Parameter

Mandatory

Type

Description

info

Yes

HWMUISDKShowSettingWindowInfoModel

Information about displaying the settings window.

Table 2 HWMUISDKShowSettingWindowInfoModel parameters

Parameter

Type

Description

isShow

BOOL

Whether the window is displayed.

defaultPage

HWMUISDKSettingPage

Tab displayed by default.

Table 3 Enumerated values of HWMUISDKSettingPage

Enumerated Value

Description

HWMUISDKSettingPageNormal

General

HWMUISDKSettingPageVideo

Video

HWMUISDKSettingPageAudio

Audio

HWMUISDKSettingPageRecord

Recording

HWMUISDKSettingPageHotkey

Shortcut keys

HWMUISDKSettingPageScreen

Screen

HWMUISDKSettingPageCount

Number of setting screens

Return Values

None

Sample Code
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
- (void)settingEvent:(NSButton *)button {
    if (![HWMSdk hasInit]) {
    // Call this API after initialization.
        return;
    }
    HWMUISDKShowSettingWindowInfoModel *model = [[HWMUISDKShowSettingWindowInfoModel alloc] init];
    model.isShow = YES;// Whether the window is displayed.
    model.defaultPage = HWMUISDKSettingPageNormal;// Set the tab page to be displayed.
    [[HWMBizSdk getBizOpenApi] showSettingWindowWithInfo:model];
}