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 arkts {'1.1':'11', '1.2':'20'} 36 * @arkts 1.1&1.2 37 */ 38export interface Resource { 39 /** 40 * bundle name in hap 41 * 42 * @type { string } 43 * @syscap SystemCapability.Global.ResourceManager 44 * @since 9 45 */ 46 /** 47 * bundle name in hap 48 * 49 * @type { string } 50 * @syscap SystemCapability.Global.ResourceManager 51 * @crossplatform 52 * @atomicservice 53 * @since arkts {'1.1':'11', '1.2':'20'} 54 * @arkts 1.1&1.2 55 */ 56 bundleName: string; 57 58 /** 59 * module name in hap 60 * 61 * @type { string } 62 * @syscap SystemCapability.Global.ResourceManager 63 * @since 9 64 */ 65 /** 66 * module name in hap 67 * 68 * @type { string } 69 * @syscap SystemCapability.Global.ResourceManager 70 * @crossplatform 71 * @atomicservice 72 * @since arkts {'1.1':'11', '1.2':'20'} 73 * @arkts 1.1&1.2 74 */ 75 moduleName: string; 76 77 /** 78 * resource id in hap 79 * 80 * @type { number } 81 * @syscap SystemCapability.Global.ResourceManager 82 * @since 9 83 */ 84 /** 85 * resource id in hap 86 * 87 * @type { number } 88 * @syscap SystemCapability.Global.ResourceManager 89 * @crossplatform 90 * @atomicservice 91 * @since arkts {'1.1':'11', '1.2':'20'} 92 * @arkts 1.1&1.2 93 */ 94 id: number; 95 96 /** 97 * Set params. 98 * 99 * @type { ?any[] } 100 * @syscap SystemCapability.Global.ResourceManager 101 * @since 9 102 */ 103 104 /** 105 * Set params. 106 * 107 * @type { ?any[] } 108 * @syscap SystemCapability.Global.ResourceManager 109 * @crossplatform 110 * @atomicservice 111 * @since 11 112 */ 113 params?: any[]; 114 115 /** 116 * Set params. 117 * 118 * @type { ?Array<Object | undefined> } 119 * @syscap SystemCapability.Global.ResourceManager 120 * @crossplatform 121 * @atomicservice 122 * @since 20 123 * @arkts 1.2 124 */ 125 params?: Array<Object | undefined>; 126 127 /** 128 * Set type. 129 * 130 * @type { ?number } 131 * @syscap SystemCapability.Global.ResourceManager 132 * @since 9 133 */ 134 /** 135 * Set type. 136 * 137 * @type { ?number } 138 * @syscap SystemCapability.Global.ResourceManager 139 * @crossplatform 140 * @atomicservice 141 * @since arkts {'1.1':'11', '1.2':'20'} 142 * @arkts 1.1&1.2 143 */ 144 type?: number; 145}