Updated on 2025-04-18 GMT+08:00

Querying the View Status

API Description

This API is used to query the view status based on keys.

Precautions

None

Method Definition

1
getViewConfig (configName):Promise<Config>

Parameter Description

Table 1 Parameter description

Parameter

Mandatory

Type

Description

configName

Yes

string

Name of component whose status is to be queried. For details, see the key values in Table 2.

Return Values

For details about the result structure, see Table 1. For details about the result data, see the following table.

Table 2 Return values

Type

Description

object

The value of configName is returned. The structure is {"configName": value}.

Sample Code
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
/**
* Query the view status.
*/
const configName = "titleVisible";
HWMeeting.getViewConfig(value).then((data) => {
// TODO: Display the result.
 }).catch((e) => {
  // Display the result.
  console.log(e.retCode+":"+e.retMsg);
});