Subscribing to Sharing Status Notifications
Function
A notification is sent when the sharing status is changed.
Function Prototype
setOnShareStateChangedCB(onShareStateChanged: (shareStateInfo: ShareStateInfo) => void): voidsetOnShareStateChangedCB(onShareStateChanged: (shareStateInfo: ShareStateInfo) => void): void
Request Parameters
Parameter | Mandatory | Type | Description |
---|---|---|---|
onShareStateChanged | Y | (shareStateInfo: ShareStateInfo) => void | Notification sent when the sharing status is changed. |
Return Values
void
Notification Method Parameters
(shareStateInfo: ShareStateInfo) => void
Parameter | Type | Description |
---|---|---|
shareStateInfo | ShareStateInfo | Sharing status information. |
Parameter | Type | Description |
---|---|---|
state | State | Sharing status. |
nickName | string | Sharer name. This parameter is valid only when state is set to HWM_STATE_ON. |
number | string | Number of the sharer. This parameter is valid only when state is set to HWM_STATE_ON. |
monitor | Monitor | Type of the shared monitor (primary or secondary monitor). |
shareType | ShareType | Sharing type. |
appHandle | number | Program handle. |
Enumeration Name | Enumerated Value | Description |
---|---|---|
HWM_STATE_OFF | 0 | Disabled. |
HWM_STATE_ON | 1 | Enabled. |
Enumeration Name | Enumerated Value | Description |
---|---|---|
HWM_MONITOR_MAIN | 1 | Primary. |
HWM_MONITOR_SECONDARY | 2 | Secondary. |
Enumeration Name | Enumerated Value | Description |
---|---|---|
HWM_SHARE_TYPE_MONITOR | 0 | Screen sharing. |
HWM_SHARE_TYPE_APP | 1 | Program sharing. |
HWM_SHARE_TYPE_WHITE_BOARD | 2 | Whiteboard sharing. |
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