• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
16import { ApplicationInfo } from './applicationInfo';
17import { ElementName } from './elementName'
18
19/**
20 * Contains basic Ability information, which uniquely identifies an ability.
21 * You can use this class to obtain values of the fields set in an AbilityInfo,
22 * such as the application Info , elementName, labelId, iconId, userId, installTime.
23 * @name Contains basic launcher Ability information, which uniquely identifies an LauncherAbilityInfo
24 * @since 8
25 * @syscap SystemCapability.BundleManager.BundleFramework
26 * @permission N/A
27 * @systemapi Hide this for inner system use
28 */
29export interface LauncherAbilityInfo {
30  /**
31   * @name Obtains application info information about an launcher ability.
32   * @since 8
33   * @syscap SystemCapability.BundleManager.BundleFramework
34   * @permission NA
35   *
36   */
37  readonly applicationInfo: ApplicationInfo;
38
39  /**
40   * @name Obtains element name about an launcher ability.
41   * @since 8
42   * @syscap SystemCapability.BundleManager.BundleFramework
43   * @permission NA
44   *
45   */
46  readonly elementName : ElementName;
47
48  /**
49   * @name Obtains labelId about an launcher ability.
50   * @since 8
51   * @syscap SystemCapability.BundleManager.BundleFramework
52   * @permission NA
53   *
54   */
55  readonly labelId: number;
56
57  /**
58   * @name Obtains iconId about an launcher ability.
59   * @since 8
60   * @syscap SystemCapability.BundleManager.BundleFramework
61   * @permission NA
62   *
63   */
64  readonly iconId: number;
65
66  /**
67   * @name Obtains userId about an launcher ability.
68   * @since 8
69   * @syscap SystemCapability.BundleManager.BundleFramework
70   * @permission NA
71   *
72   */
73  readonly userId: number;
74
75  /**
76   * @name Obtains installTime about an launcher ability.
77   * @since 8
78   * @syscap SystemCapability.BundleManager.BundleFramework
79   * @permission NA
80   *
81   */
82  readonly installTime : number;
83}