• 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
16import { ApplicationInfo } from './ApplicationInfo';
17import { ElementName } from './ElementName'
18
19/**
20 * Contains basic launcher Ability information, which uniquely identifies an LauncherAbilityInfo
21 * @typedef LauncherAbilityInfo
22 * @syscap SystemCapability.BundleManager.BundleFramework.Launcher
23 * @systemapi
24 * @since 9
25 */
26export interface LauncherAbilityInfo {
27  /**
28   * Obtains application info information about an launcher ability.
29   * @type {ApplicationInfo}
30   * @syscap SystemCapability.BundleManager.BundleFramework.Launcher
31   * @since 9
32   */
33  readonly applicationInfo: ApplicationInfo;
34
35  /**
36   * Obtains element name about an launcher ability.
37   * @type {ElementName}
38   * @syscap SystemCapability.BundleManager.BundleFramework.Launcher
39   * @since 9
40   */
41  readonly elementName : ElementName;
42
43  /**
44   * Obtains labelId about an launcher ability.
45   * @type {number}
46   * @syscap SystemCapability.BundleManager.BundleFramework.Launcher
47   * @since 9
48   */
49  readonly labelId: number;
50
51  /**
52   * Obtains iconId about an launcher ability.
53   * @type {number}
54   * @syscap SystemCapability.BundleManager.BundleFramework.Launcher
55   * @since 9
56   */
57  readonly iconId: number;
58
59  /**
60   * Obtains userId about an launcher ability.
61   * @type {number}
62   * @syscap SystemCapability.BundleManager.BundleFramework.Launcher
63   * @since 9
64   */
65  readonly userId: number;
66
67  /**
68   * Obtains installTime about an launcher ability.
69   * @type {number}
70   * @syscap SystemCapability.BundleManager.BundleFramework.Launcher
71   * @since 9
72   */
73  readonly installTime : number;
74}
75