1/*
2 * Copyright (c) 2021 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 { ApplicationInfo } from './applicationInfo';
22import { ElementName } from './elementName';
23
24/**
25 * Contains basic Ability information, which uniquely identifies an ability.
26 * You can use this class to obtain values of the fields set in an AbilityInfo,
27 * such as the application Info , elementName, labelId, iconId, userId, installTime.
28 *
29 * Contains basic launcher Ability information, which uniquely identifies an LauncherAbilityInfo
30 *
31 * @typedef LauncherAbilityInfo
32 * @syscap SystemCapability.BundleManager.BundleFramework
33 * @systemapi Hide this for inner system use
34 * @since 8
35 * @deprecated since 9
36 * @useinstead ohos.bundle.bundleManager.LauncherAbilityInfo
37 */
38export interface LauncherAbilityInfo {
39  /**
40   * Obtains application info information about an launcher ability.
41   *
42   * @type { ApplicationInfo }
43   * @syscap SystemCapability.BundleManager.BundleFramework
44   * @systemapi Hide this for inner system use
45   * @since 8
46   * @deprecated since 9
47   */
48  readonly applicationInfo: ApplicationInfo;
49
50  /**
51   * Obtains element name about an launcher ability.
52   *
53   * @type { ElementName }
54   * @syscap SystemCapability.BundleManager.BundleFramework
55   * @systemapi Hide this for inner system use
56   * @since 8
57   * @deprecated since 9
58   */
59  readonly elementName: ElementName;
60
61  /**
62   * Obtains labelId about an launcher ability.
63   *
64   * @type { number }
65   * @syscap SystemCapability.BundleManager.BundleFramework
66   * @systemapi Hide this for inner system use
67   * @since 8
68   * @deprecated since 9
69   */
70  readonly labelId: number;
71
72  /**
73   * Obtains iconId about an launcher ability.
74   *
75   * @type { number }
76   * @syscap SystemCapability.BundleManager.BundleFramework
77   * @systemapi Hide this for inner system use
78   * @since 8
79   * @deprecated since 9
80   */
81  readonly iconId: number;
82
83  /**
84   * Obtains userId about an launcher ability.
85   *
86   * @type { number }
87   * @syscap SystemCapability.BundleManager.BundleFramework
88   * @systemapi Hide this for inner system use
89   * @since 8
90   * @deprecated since 9
91   */
92  readonly userId: number;
93
94  /**
95   * Obtains installTime about an launcher ability.
96   *
97   * @type { number }
98   * @syscap SystemCapability.BundleManager.BundleFramework
99   * @systemapi Hide this for inner system use
100   * @since 8
101   * @deprecated since 9
102   */
103  readonly installTime: number;
104}
105