Help Center/ Meeting/ Client SDK Reference/ macOS SDK/ APIs/ UI Customization/ Obtaining Information About the Main Window
Updated on 2024-09-13 GMT+08:00

Obtaining Information About the Main Window

getMainWindowInfo

API Description

This API is used to obtain information about the main window.

Method Definition

1
- (HWMUISDKMainWindowInfoModel *)getMainWindowInfo;

Parameter Description

None

Return Values

Table 1 HWMUISDKMainWindowInfoModel description

Parameter

Type

Description

x

NSInteger

Offset of the window relative to the left side of the screen.

y

NSInteger

Offset of the window relative to the top of the screen.

width

NSInteger

Width of the window.

height

NSInteger

Height of the window.

handle

NSUInteger

Window handle.

Sample Code
1
HWMUISDKMainWindowInfoModel * info = [[HWMBizSdk getBizOpenApi] getMainWindowInfo];