1/*
2 * Copyright (c) 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
21import { ApplicationInfo } from './ApplicationInfo';
22import { ElementName } from './ElementName';
23
24/**
25 * Contains basic launcher Ability information, which uniquely identifies an LauncherAbilityInfo
26 *
27 * @typedef LauncherAbilityInfo
28 * @syscap SystemCapability.BundleManager.BundleFramework.Launcher
29 * @systemapi
30 * @since 9
31 */
32export interface LauncherAbilityInfo {
33  /**
34   * Obtains application info information about an launcher ability.
35   *
36   * @type { ApplicationInfo }
37   * @syscap SystemCapability.BundleManager.BundleFramework.Launcher
38   * @systemapi
39   * @since 9
40   */
41  readonly applicationInfo: ApplicationInfo;
42
43  /**
44   * Obtains element name about an launcher ability.
45   *
46   * @type { ElementName }
47   * @syscap SystemCapability.BundleManager.BundleFramework.Launcher
48   * @systemapi
49   * @since 9
50   */
51  readonly elementName: ElementName;
52
53  /**
54   * Obtains labelId about an launcher ability.
55   *
56   * @type { number }
57   * @syscap SystemCapability.BundleManager.BundleFramework.Launcher
58   * @systemapi
59   * @since 9
60   */
61  readonly labelId: number;
62
63  /**
64   * Obtains iconId about an launcher ability.
65   *
66   * @type { number }
67   * @syscap SystemCapability.BundleManager.BundleFramework.Launcher
68   * @systemapi
69   * @since 9
70   */
71  readonly iconId: number;
72
73  /**
74   * Obtains userId about an launcher ability.
75   *
76   * @type { number }
77   * @syscap SystemCapability.BundleManager.BundleFramework.Launcher
78   * @systemapi
79   * @since 9
80   */
81  readonly userId: number;
82
83  /**
84   * Obtains installTime about an launcher ability.
85   *
86   * @type { number }
87   * @syscap SystemCapability.BundleManager.BundleFramework.Launcher
88   * @systemapi
89   * @since 9
90   */
91  readonly installTime: number;
92}
93