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 21import bundleManager from './../@ohos.bundle.bundleManager'; 22 23/** 24 * Indicates the RecoverableApplicationInfo 25 * 26 * @typedef RecoverableApplicationInfo 27 * @syscap SystemCapability.BundleManager.BundleFramework.Core 28 * @systemapi 29 * @since 11 30 */ 31export interface RecoverableApplicationInfo { 32 /** 33 * Indicates the bundle name 34 * 35 * @type { string } 36 * @readonly 37 * @syscap SystemCapability.BundleManager.BundleFramework.Core 38 * @systemapi 39 * @since 11 40 */ 41 readonly bundleName: string; 42 43 /** 44 * Indicates the module name 45 * 46 * @type { string } 47 * @readonly 48 * @syscap SystemCapability.BundleManager.BundleFramework.Core 49 * @systemapi 50 * @since 11 51 */ 52 readonly moduleName: string; 53 54 /** 55 * Indicates the label id 56 * 57 * @type { number } 58 * @readonly 59 * @syscap SystemCapability.BundleManager.BundleFramework.Core 60 * @systemapi 61 * @since 11 62 */ 63 readonly labelId: number; 64 65 /** 66 * Indicates the icon id 67 * 68 * @type { number } 69 * @readonly 70 * @syscap SystemCapability.BundleManager.BundleFramework.Core 71 * @systemapi 72 * @since 11 73 */ 74 readonly iconId: number; 75 76 /** 77 * Indicates whether the application is a system application 78 * 79 * @type { boolean } 80 * @readonly 81 * @syscap SystemCapability.BundleManager.BundleFramework.Core 82 * @systemapi 83 * @since 12 84 */ 85 readonly systemApp: boolean; 86 87 /** 88 * Indicates the type of application. 89 * 90 * @type { bundleManager.BundleType } 91 * @readonly 92 * @syscap SystemCapability.BundleManager.BundleFramework.Core 93 * @systemapi 94 * @since 12 95 */ 96 readonly bundleType: bundleManager.BundleType; 97 98 /** 99 * Indicates the application source code path. 100 * 101 * @type { Array<string> } 102 * @readonly 103 * @syscap SystemCapability.BundleManager.BundleFramework.Core 104 * @systemapi 105 * @since 12 106 */ 107 readonly codePaths: Array<string>; 108} 109