1/* 2* Copyright (c) 2024 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 21import lang from '../../arkts/@arkts.lang'; 22import collections from '../../arkts/@arkts.collections'; 23 24/** 25 * Contains sendable resource descriptor information. 26 * 27 * @interface SendableResource 28 * @syscap SystemCapability.Global.ResourceManager 29 * @crossplatform 30 * @atomicservice 31 * @since 12 32 */ 33interface SendableResource extends lang.ISendable { 34 35 /** 36 * bundle name in hap 37 * 38 * @type { string } 39 * @syscap SystemCapability.Global.ResourceManager 40 * @crossplatform 41 * @atomicservice 42 * @since 12 43 */ 44 bundleName: string; 45 46 /** 47 * module name in hap 48 * 49 * @type { string } 50 * @syscap SystemCapability.Global.ResourceManager 51 * @crossplatform 52 * @atomicservice 53 * @since 12 54 */ 55 moduleName: string; 56 57 /** 58 * resource id in hap 59 * 60 * @type { number } 61 * @syscap SystemCapability.Global.ResourceManager 62 * @crossplatform 63 * @atomicservice 64 * @since 12 65 */ 66 id: number; 67 68 /** 69 * Set params. 70 * 71 * @type { ?collections.Array <string | number> } 72 * @syscap SystemCapability.Global.ResourceManager 73 * @crossplatform 74 * @atomicservice 75 * @since 12 76 */ 77 params?: collections.Array <string | number>; 78 79 /** 80 * Set type. 81 * 82 * @type { ?number } 83 * @syscap SystemCapability.Global.ResourceManager 84 * @crossplatform 85 * @atomicservice 86 * @since 12 87 */ 88 type?: number; 89}