• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Copyright (c) 2022 Huawei Device Co., Ltd.
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at
6 *
7 *     http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
14 */
15
16/**
17 * Indicates the defined permission details in file config.json
18 * @typedef PermissionDef
19 * @syscap SystemCapability.BundleManager.BundleFramework.Core
20 * @systemapi
21 * @since 9
22 */
23 export interface PermissionDef {
24    /**
25     * Indicates the name of this permission
26     * @type {string}
27     * @syscap SystemCapability.BundleManager.BundleFramework.Core
28     * @since 9
29     */
30     readonly permissionName: string;
31
32    /**
33     * Indicates the grant mode of this permission
34     * @type {number}
35     * @syscap SystemCapability.BundleManager.BundleFramework.Core
36     * @since 9
37     */
38     readonly grantMode: number;
39
40    /**
41     * Indicates the labelId of this permission
42     * @type {number}
43     * @syscap SystemCapability.BundleManager.BundleFramework.Core
44     * @since 9
45     */
46     readonly labelId: number;
47
48    /**
49     * Indicates the descriptionId of this permission
50     * @type {number}
51     * @syscap SystemCapability.BundleManager.BundleFramework.Core
52     * @since 9
53     */
54     readonly descriptionId: number;
55  }