Updated on 2024-07-30 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 in a meeting).

Precautions

None

Method Definition

1
2
3
4
/**
 * Obtains the status of a user (whether the user is in a 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());
}