harmony 鸿蒙Init

  • 2023-06-24
  • 浏览 (680)

Init

Overview

Provides APIs for checking SystemCapability (SycCap) support.

You can use the provided APIs to read the SycCap parameter file to check whether a specific SycCap is supported.

Since:

8

Summary

Files

Name Description
syscap_ndk.h Declares the APIs for checking SycCap support.
File to include:
Library: libdeviceinfo_ndk.z.so

Functions

Name Description
canIUse (const char *cap) Checks whether a SysCap is supported. SystemCapability (SysCap) refers to a standalone feature in the operating system. Different devices support different SysCap sets. Each SysCap corresponds to one or more APIs. You can determine whether an API can be used by checking SysCap support.

Function Description

canIUse()

bool canIUse (const char * cap)

Description

Checks whether a SysCap is supported. SystemCapability (SysCap) refers to a standalone feature in the operating system. Different devices support different SysCap sets. Each SysCap corresponds to one or more APIs. You can determine whether an API can be used by checking SysCap support.

Parameters

Name Description
cap Name of the SysCap to check.

Returns

Check result. The value true means that the SysCap is supported, and false means the opposite.

你可能感兴趣的鸿蒙文章

harmony 鸿蒙Native APIs

harmony 鸿蒙AVCapability

harmony 鸿蒙AVDemuxer

harmony 鸿蒙AVMuxer

harmony 鸿蒙AVScreenCapture

harmony 鸿蒙AVSource

harmony 鸿蒙AudioDecoder

harmony 鸿蒙AudioEncoder

harmony 鸿蒙CodecBase

harmony 鸿蒙Core

0  赞