Obtaining Information About the Main Window
Function
This API is used to obtain information about the main window.
Function Prototype
getMainWindowInfo(onGetMainWindowInfoResult?: (ret: SDKERR, reason: string, mainWindowInfo: MainWindowInfo) => void): voidgetMainWindowInfo(onGetMainWindowInfoResult?: (ret: SDKERR, reason: string, mainWindowInfo: MainWindowInfo) => void): void
Request Parameters
Parameter | Mandatory | Type | Description |
---|---|---|---|
onGetMainWindowInfoResult | Yes | (ret: SDKERR, reason: string, mainWindowInfo: MainWindowInfo) => void | Main window information notification, which is returned when the main window information is obtained. |
Return Values
void
Callback Method Parameters
(ret: SDKERR, reason: string, mainWindowInfo: MainWindowInfo) => void
Parameter | Type | Description |
---|---|---|
ret | For details about SDKERR, see Error Code Reference. | Error code. |
reason | string | Error description. |
mainWindowInfo | MainWindowInfo | Main window information. |
Parameter | Type | Description |
---|---|---|
x | number | Offset of the window relative to the left side of the screen. |
y | number | Offset of the window relative to the top of the screen. |
width | number | Width of the window. |
height | number | Height of the window. |
handle | number | Window handle. |
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot