Obtaining the Status of Your Sharing
Function
This API is used to obtain the status of your sharing.
Function Prototype
getSelfShareState(onGetSelfShareStateResult?: (ret: SDKERR, reason: string, selfShareStateInfo: SelfShareStateInfo) => void): voidgetSelfShareState(onGetSelfShareStateResult?: (ret: SDKERR, reason: string, selfShareStateInfo: SelfShareStateInfo) => void): void
Request Parameters
Parameter | Mandatory | Type | Description |
---|---|---|---|
onGetSelfShareStateResult | Yes | (ret: SDKERR, reason: string, selfShareStateInfo: SelfShareStateInfo) => void | Callback of obtaining the status of your sharing. |
Return Values
void
Callback Method Parameters
(ret: SDKERR, reason: string, selfShareStateInfo: SelfShareStateInfo) => void
Parameter | Type | Description |
---|---|---|
ret | For details about SDKERR, see Error Code Reference. | Error code. |
reason | string | Error description. |
selfShareStateInfo | SelfShareStateInfo | Status of your sharing. |
Parameter | Type | Description |
---|---|---|
state | State | Sharing status. |
Enumeration Name | Enumerated Value | Description |
---|---|---|
HWM_STATE_OFF | 0 | Stopped. |
HWM_STATE_ON | 1 | Ongoing. |
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