harmony 鸿蒙Init
Init
Overview
Provides the API for querying the support for a SystemCapability (SysCap), which refers to a standalone feature in the operating system. Different devices support different SysCap sets. Each SysCap corresponds to one or more APIs.
The result is returned by checking the SysCap configuration file.
Since
8
Summary
Files
Name | Description |
---|---|
syscap_ndk.h | Provides the API for querying whether a SysCap is supported. File to include: Library: libdeviceinfo_ndk.z.so |
Functions
Name | Description |
---|---|
canIUse (const char *cap) | Checks whether a SysCap is supported. |
Function Description
canIUse()
bool canIUse (const char * cap)
Description
Checks whether a SysCap is supported.
Parameters
Name | Description |
---|---|
cap | Pointer to the SysCap to check. |
Returns
Returns true if the SysCap is supported; returns false otherwise.
你可能感兴趣的鸿蒙文章
harmony 鸿蒙JSVM_CreateVMOptions
harmony 鸿蒙JSVM_ExtendedErrorInfo
harmony 鸿蒙JSVM_PropertyDescriptor
0
赞
- 所属分类: 后端技术
- 本文标签:
热门推荐
-
2、 - 优质文章
-
3、 gate.io
-
8、 golang
-
9、 openharmony
-
10、 Vue中input框自动聚焦