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