From 9b63daa21d5bbebe09f652aec9808b59de3de1b5 Mon Sep 17 00:00:00 2001 From: zengyawen Date: Mon, 29 May 2023 04:02:21 +0000 Subject: [PATCH] update docs Signed-off-by: zengyawen --- zh-cn/application-dev/reference/syscap.md | 26 +++++++++++------------ 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/zh-cn/application-dev/reference/syscap.md b/zh-cn/application-dev/reference/syscap.md index a3f1bd2ed4..2eeaed9a4c 100644 --- a/zh-cn/application-dev/reference/syscap.md +++ b/zh-cn/application-dev/reference/syscap.md @@ -122,19 +122,19 @@ DevEco Studio会根据创建的工程所支持的设置自动配置联想能力 ``` - Native API -```c -#include -#include -#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 + #include + #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。 -- GitLab