Updated on 2025-07-28 GMT+08:00

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

Table 1 Input parameter description
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

Table 2 Input parameter description
Parameter Type Description
ret For details about SDKERR, see Error Code Reference. Error code.
reason string Error description.
selfShareStateInfo SelfShareStateInfo Status of your sharing.
Table 3 SelfShareStateInfo
Parameter Type Description
state State Sharing status.
Table 4 Enumerated values of State
Enumeration Name Enumerated Value Description
HWM_STATE_OFF 0 Stopped.
HWM_STATE_ON 1 Ongoing.