Updated on 2023-03-23 GMT+08:00

Obtaining a User Status

1
HWMSdk.getOpenApi().getHWMUserState();

API Description

This API is used to obtain the status of a user (whether the user is being called or in the meeting).

Precautions

None

Method Definition

1
2
3
4
/**
 * Obtains the status of a user (whether the user is being called or in the meeting).
 */
HWMUserState getHWMUserState();

Parameter Description

None

Return Values

Table 1 Enumerated values of HWMUserState

Enumerated Value

Description

HWM_STATE_IDLE

The user is idle.

HWM_STATE_IN_CONF

The user is in a meeting.

HWM_STATE_IN_CALL

The user is being called.

Sample Code
1
2
3
4
public void getHWMUserState() {
    HWMUserState hwmUserState = HWMSdk.getOpenApi(HWMBizSdk.getApplication()).getHWMUserState();
    DemoUtil.showToast("user state: " + hwmUserState.getDescription());
}