1/* 2 * Copyright (c) 2021-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 * Contains basic Ability information, which uniquely identifies an ability. 18 * You can use this class to obtain values of the fields set in an element, 19 * such as the device ID, bundle name, and ability name. 20 * 21 * Contains basic Ability information, which uniquely identifies an ability 22 * 23 * @typedef ElementName 24 * @syscap SystemCapability.BundleManager.BundleFramework 25 * @since 7 26 * @deprecated since 9 27 * @useinstead ohos.bundle.bundleManager.ElementName 28 */ 29export interface ElementName { 30 /** 31 * device id 32 * 33 * @default - 34 * @syscap SystemCapability.BundleManager.BundleFramework 35 * @since 7 36 * @deprecated since 9 37 */ 38 deviceId?: string; 39 40 /** 41 * bundle name 42 * 43 * @default - 44 * @syscap SystemCapability.BundleManager.BundleFramework 45 * @since 7 46 * @deprecated since 9 47 */ 48 bundleName: string; 49 50 /** 51 * ability name 52 * 53 * @default ability class name. 54 * @syscap SystemCapability.BundleManager.BundleFramework 55 * @since 7 56 * @deprecated since 9 57 */ 58 abilityName: string; 59 60 /** 61 * uri 62 * 63 * @default - 64 * @syscap SystemCapability.BundleManager.BundleFramework 65 * @since 7 66 * @deprecated since 9 67 */ 68 uri?: string; 69 70 /** 71 * shortName 72 * 73 * @default - 74 * @syscap SystemCapability.BundleManager.BundleFramework 75 * @since 7 76 * @deprecated since 9 77 */ 78 shortName?: string; 79} 80