Help Center> Huawei HiLens> SDK Reference> Initialization> Initializing the HiLens Framework
Updated on 2023-06-15 GMT+08:00

Initializing the HiLens Framework

This section describes how to initialize the HiLens Framework. Before calling other APIs of HiLens Framework, you need to perform global initialization.

API Calling

HiLensEC hilens::Init(const std::string & verify)

Parameter Description

Table 1 Parameters

Parameter

Description

verify

The value must be the same as that of Verification Value you entered in the Basic Information area when you create a skill on the HiLens management console. If they are different, HiLens Framework forcibly stops the skill.

Return Values

If the return value is 0, the operation is successful. Otherwise, the operation fails. For details about the failure response parameters, see Error Codes.