openharmony 鸿蒙 init

2025-06-12 浏览 (1)

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

NameDescription
syscap_ndk.hProvides the API for querying whether a SysCap is supported.
File to include: <syscap_ndk.h>
Library: libdeviceinfo_ndk.z.so

Functions

NameDescription
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

NameDescription
capPointer to the SysCap to check.

Returns

Returns true if the SysCap is supported; returns false otherwise.

你可能感兴趣的鸿蒙文章

harmony 鸿蒙Common Capabilities

harmony 鸿蒙_j_s_v_m

harmony 鸿蒙JSVM_CallbackStruct

harmony 鸿蒙JSVM_CreateVMOptions

harmony 鸿蒙JSVM_ExtendedErrorInfo

harmony 鸿蒙JSVM_HeapStatistics

harmony 鸿蒙JSVM_InitOptions

harmony 鸿蒙JSVM_PropertyDescriptor

harmony 鸿蒙JSVM_PropertyHandlerConfigurationStruct

harmony 鸿蒙JSVM_ScriptOrigin

  • 所属分类: 后端技术
  • 本文标签: 鸿蒙 软件
  • 版权声明: 本文链接 https://seaxiang.com/blog/Qlim3P