• 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 * Contains resource descriptor information.
18 *
19 * @interface Resource
20 * @syscap SystemCapability.Global.ResourceManager
21 * @since 9
22 */
23/**
24 * Contains resource descriptor information.
25 *
26 * @interface Resource
27 * @syscap SystemCapability.Global.ResourceManager
28 * @crossplatform
29 * @atomicservice
30 * @since 11
31 */
32export interface Resource {
33  /**
34   * bundle name in hap
35   *
36   * @type { string }
37   * @syscap SystemCapability.Global.ResourceManager
38   * @since 9
39   */
40  /**
41   * bundle name in hap
42   *
43   * @type { string }
44   * @syscap SystemCapability.Global.ResourceManager
45   * @crossplatform
46   * @atomicservice
47   * @since 11
48   */
49  bundleName: string;
50
51  /**
52   * module name in hap
53   *
54   * @type { string }
55   * @syscap SystemCapability.Global.ResourceManager
56   * @since 9
57   */
58  /**
59   * module name in hap
60   *
61   * @type { string }
62   * @syscap SystemCapability.Global.ResourceManager
63   * @crossplatform
64   * @atomicservice
65   * @since 11
66   */
67  moduleName: string;
68
69  /**
70   * resource id in hap
71   *
72   * @type { number }
73   * @syscap SystemCapability.Global.ResourceManager
74   * @since 9
75   */
76  /**
77   * resource id in hap
78   *
79   * @type { number }
80   * @syscap SystemCapability.Global.ResourceManager
81   * @crossplatform
82   * @atomicservice
83   * @since 11
84   */
85  id: number;
86
87  /**
88   * Set params.
89   *
90   * @type { ?any[] }
91   * @syscap SystemCapability.Global.ResourceManager
92   * @since 7
93   */
94  /**
95   * Set params.
96   *
97   * @type { ?any[] }
98   * @syscap SystemCapability.Global.ResourceManager
99   * @crossplatform
100   * @atomicservice
101   * @since 11
102   */
103  params?: any[];
104
105  /**
106   * Set type.
107   *
108   * @type { ?number }
109   * @syscap SystemCapability.Global.ResourceManager
110   * @since 7
111   */
112  /**
113   * Set type.
114   *
115   * @type { ?number }
116   * @syscap SystemCapability.Global.ResourceManager
117   * @crossplatform
118   * @atomicservice
119   * @since 11
120   */
121  type?: number;
122}