未验证 提交 9b63daa2 编写于 作者: Z zengyawen 提交者: Gitee

update docs

Signed-off-by: Nzengyawen <zengyawen1@huawei.com>
上级 f0e69ce9
......@@ -122,19 +122,19 @@ DevEco Studio会根据创建的工程所支持的设置自动配置联想能力
```
- Native API
```c
#include <stdio.h>
#include <stdlib.h>
#include "syscap_ndk.h"
char syscap[] = "SystemCapability.ArkUI.ArkUI.Full";
bool result = canIUse(syscap);
if (result) {
printf("SysCap: %s is supported!\n", syscap);
} else {
printf("SysCap: %s is not supported!\n", syscap);
}
```
```c
#include <stdio.h>
#include <stdlib.h>
#include "syscap_ndk.h"
char syscap[] = "SystemCapability.ArkUI.ArkUI.Full";
bool result = canIUse(syscap);
if (result) {
printf("SysCap: %s is supported!\n", syscap);
} else {
printf("SysCap: %s is not supported!\n", syscap);
}
```
除此之外,开发者可以通过API参考文档查询API接口所属的SysCap。
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册