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