• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 * @name Contains basic Ability information, which uniquely identifies an ability
21 * @since 7
22 * @syscap SystemCapability.BundleManager.BundleFramework
23 * @deprecated since 9
24 * @useinstead ohos.bundle.bundleManager.ElementName
25 */
26 export interface ElementName {
27  /**
28   * device id
29   * @default -
30   *
31   * @since 7
32   * @syscap SystemCapability.BundleManager.BundleFramework
33   */
34  deviceId?: string;
35
36  /**
37   * bundle name
38   * @default -
39   *
40   * @since 7
41   * @syscap SystemCapability.BundleManager.BundleFramework
42   */
43  bundleName: string;
44
45  /**
46   * ability name
47   * @default ability class name.
48   *
49   * @since 7
50   * @syscap SystemCapability.BundleManager.BundleFramework
51   */
52  abilityName: string;
53
54  /**
55   * uri
56   * @default -
57   *
58   * @since 7
59   * @syscap SystemCapability.BundleManager.BundleFramework
60   */
61  uri?: string;
62
63  /**
64   * shortName
65   * @default -
66   *
67   * @since 7
68   * @syscap SystemCapability.BundleManager.BundleFramework
69   */
70  shortName?: string;
71}
72