1/* 2 * Copyright (c) 2023 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 AbilityKit 19 */ 20 21/*** if arkts 1.1 */ 22import { DrawableDescriptor } from './../@ohos.arkui.drawableDescriptor'; 23/*** endif */ 24 25/** 26 * Obtains resource information about a bundle 27 * 28 * @typedef BundleResourceInfo 29 * @syscap SystemCapability.BundleManager.BundleFramework.Resource 30 * @systemapi 31 * @since arkts {'1.1':'11', '1.2':'20'} 32 * @arkts 1.1&1.2 33 */ 34export interface BundleResourceInfo { 35 /** 36 * Indicates the bundleName of this bundle 37 * 38 * @type { string } 39 * @readonly 40 * @syscap SystemCapability.BundleManager.BundleFramework.Resource 41 * @systemapi 42 * @since arkts {'1.1':'11', '1.2':'20'} 43 * @arkts 1.1&1.2 44 */ 45 readonly bundleName: string; 46 47 /** 48 * Indicates the icon of this bundle, which is base64 format 49 * 50 * @type { string } 51 * @readonly 52 * @syscap SystemCapability.BundleManager.BundleFramework.Resource 53 * @systemapi 54 * @since arkts {'1.1':'11', '1.2':'20'} 55 * @arkts 1.1&1.2 56 */ 57 readonly icon: string; 58 59 /** 60 * Indicates the label of this bundle 61 * 62 * @type { string } 63 * @readonly 64 * @syscap SystemCapability.BundleManager.BundleFramework.Resource 65 * @systemapi 66 * @since arkts {'1.1':'11', '1.2':'20'} 67 * @arkts 1.1&1.2 68 */ 69 readonly label: string; 70 71 /** 72 * Indicates the drawable descriptor of this bundle icon 73 * 74 * @type { DrawableDescriptor } 75 * @readonly 76 * @syscap SystemCapability.BundleManager.BundleFramework.Resource 77 * @systemapi 78 * @since 12 79 */ 80 readonly drawableDescriptor: DrawableDescriptor; 81 82 /** 83 * Indicates the index of the bundle 84 * 85 * @type { number } 86 * @readonly 87 * @syscap SystemCapability.BundleManager.BundleFramework.Resource 88 * @systemapi 89 * @since arkts {'1.1':'12', '1.2':'20'} 90 * @arkts 1.1&1.2 91 */ 92 readonly appIndex: number; 93} 94