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 launcher ability 27 * 28 * @typedef LauncherAbilityResourceInfo 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 LauncherAbilityResourceInfo { 35 /** 36 * Indicates the bundleName of this ability 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 moduleName of this ability 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 moduleName: string; 58 59 /** 60 * Indicates the abilityName of this ability 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 abilityName: string; 70 71 /** 72 * Indicates the icon of this ability, which is base64 format 73 * 74 * @type { string } 75 * @readonly 76 * @syscap SystemCapability.BundleManager.BundleFramework.Resource 77 * @systemapi 78 * @since arkts {'1.1':'11', '1.2':'20'} 79 * @arkts 1.1&1.2 80 */ 81 readonly icon: string; 82 83 /** 84 * Indicates the label of this ability 85 * 86 * @type { string } 87 * @readonly 88 * @syscap SystemCapability.BundleManager.BundleFramework.Resource 89 * @systemapi 90 * @since arkts {'1.1':'11', '1.2':'20'} 91 * @arkts 1.1&1.2 92 */ 93 readonly label: string; 94 95 /** 96 * Indicates the drawable descriptor of this ability icon 97 * 98 * @type { DrawableDescriptor } 99 * @readonly 100 * @syscap SystemCapability.BundleManager.BundleFramework.Resource 101 * @systemapi 102 * @since 12 103 */ 104 readonly drawableDescriptor: DrawableDescriptor; 105 106 /** 107 * Indicates the index of the bundle 108 * 109 * @type { number } 110 * @readonly 111 * @syscap SystemCapability.BundleManager.BundleFramework.Resource 112 * @systemapi 113 * @since arkts {'1.1':'12', '1.2':'20'} 114 * @arkts 1.1&1.2 115 */ 116 readonly appIndex: number; 117} 118