• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 * @since 18
30 */
31export interface LauncherAbilityInfo {
32  /**
33   * Obtains application info information about an launcher ability.
34   *
35   * @type { ApplicationInfo }
36   * @readonly
37   * @syscap SystemCapability.BundleManager.BundleFramework.Launcher
38   * @since 18
39   */
40  readonly applicationInfo: ApplicationInfo;
41
42  /**
43   * Obtains element name about an launcher ability.
44   *
45   * @type { ElementName }
46   * @readonly
47   * @syscap SystemCapability.BundleManager.BundleFramework.Launcher
48   * @since 18
49   */
50  readonly elementName: ElementName;
51
52  /**
53   * Obtains labelId about an launcher ability.
54   *
55   * @type { number }
56   * @readonly
57   * @syscap SystemCapability.BundleManager.BundleFramework.Launcher
58   * @since 18
59   */
60  readonly labelId: number;
61
62  /**
63   * Obtains iconId about an launcher ability.
64   *
65   * @type { number }
66   * @readonly
67   * @syscap SystemCapability.BundleManager.BundleFramework.Launcher
68   * @since 18
69   */
70  readonly iconId: number;
71
72  /**
73   * Obtains userId about an launcher ability.
74   *
75   * @type { number }
76   * @readonly
77   * @syscap SystemCapability.BundleManager.BundleFramework.Launcher
78   * @since 18
79   */
80  readonly userId: number;
81
82  /**
83   * Obtains installTime about an launcher ability.
84   *
85   * @type { number }
86   * @readonly
87   * @syscap SystemCapability.BundleManager.BundleFramework.Launcher
88   * @since 18
89   */
90  readonly installTime: number;
91}
92