Help Center/ Meeting/ Client SDK Reference/ Electron SDK/ APIs/ Call Management Objects/ Subscribing to Call Status Notifications
Updated on 2023-03-23 GMT+08:00

Subscribing to Call Status Notifications

Function

A notification is sent when the call status is changed.

Function Prototype

setOnCallStateChangedCB(onCallStateChanged: (callStateInfo: CallStateInfo) => void): voidsetOnCallStateChangedCB(onCallStateChanged: (callStateInfo: CallStateInfo) => void): void

Request Parameters

Table 1 Input parameter description
Parameter Mandatory Type Description
onCallStateChanged Y (callStateInfo: CallStateInfo) => void Notification sent when the call status is changed.

Return Values

void

Notification Method Parameters

(callStateInfo: CallStateInfo) => void

Table 2 Input parameter description
Parameter Type Description
callStateInfo CallStateInfo Call status information.
Table 3 CallStateInfo
Parameter Type Description
state CallState Call status.
Table 4 Enumerated values of CallState
Enumeration Name Enumerated Value Description
HWM_CALL_STATE_IDLE 0 Idle.
HWM_CALL_STATE_BUSY 1 Busy.