harmony 鸿蒙AbilityAccessControl

2025-06-12 浏览 (1)

AbilityAccessControl

Overview

Provides the system capability for implementing application access control.

Since: 12

Summary

Files

NameDescription
ability_access_control.hDeclares the APIs for implementing application access control.

Functions

NameDescription
bool OH_AT_CheckSelfPermission(const char *permission)Checks whether a permission is granted to this application.

Function Description

OH_AT_CheckSelfPermission()

bool OH_AT_CheckSelfPermission(const char* permission)

Description Checks whether a permission is granted to this application.

Since: 12

Parameters

NameDescription
permissionPointer to the permission to check. For details about the permission, see the application permission list.

Returns

Returns true if the permission has been granted to the application; returns false otherwise.

你可能感兴趣的鸿蒙文章

harmony 鸿蒙Ability Kit

harmony 鸿蒙AbilityBase

harmony 鸿蒙AbilityBase_Element

harmony 鸿蒙AbilityRuntime

harmony 鸿蒙bundle

harmony 鸿蒙OH_NativeBundle_ApplicationInfo

harmony 鸿蒙OH_NativeBundle_ElementName

harmony 鸿蒙ability_access_control.h

harmony 鸿蒙ability_base_common.h

harmony 鸿蒙ability_runtime_common.h

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