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