Help Center/ Huawei HiLens/ SDK Reference/ Resource Management/ Obtaining Skill Configurations
Updated on 2023-06-15 GMT+08:00

Obtaining Skill Configurations

This section describes how to obtain the skill configurations, which are the JSON objects (jsoncpp) parsed from the content in the skill configuration files. Note that GetSkillConfig() reads the configuration file and parses it into a JSON object each time. Therefore, if you need to read multiple configuration items, save the return values as variables and do not frequently invoke GetSkillConfig().

API Calling

Json::Value hilens::GetSkillConfig()

Return Value

The JSON object of the skill configurations is returned. If the parsing fails, an empty JSON::Value is returned. You can use .empty() to check whether the JSON::Value is empty.