目录

AbilityAccessControl

Overview

Provides the system capability for implementing application access control.

Since: 12

Summary

[h2]Files

Name Description
ability_access_control.h Declares the APIs for implementing application access control.

[h2]Functions

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

Function Description

[h2]OH_AT_CheckSelfPermission()

bool OH_AT_CheckSelfPermission(const char* permission)

Description

Checks whether a permission is granted to this application.

Since: 12

Parameters

Name Description
permission Pointer 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.