• 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 * @systemapi Hide this for inner system use
27 * @deprecated since 9
28 * @useinstead ohos.bundle.bundleManager.LauncherAbilityInfo
29 */
30export interface LauncherAbilityInfo {
31  /**
32   * @name Obtains application info information about an launcher ability.
33   * @since 8
34   * @syscap SystemCapability.BundleManager.BundleFramework
35   */
36  readonly applicationInfo: ApplicationInfo;
37
38  /**
39   * @name Obtains element name about an launcher ability.
40   * @since 8
41   * @syscap SystemCapability.BundleManager.BundleFramework
42   */
43  readonly elementName : ElementName;
44
45  /**
46   * @name Obtains labelId about an launcher ability.
47   * @since 8
48   * @syscap SystemCapability.BundleManager.BundleFramework
49   */
50  readonly labelId: number;
51
52  /**
53   * @name Obtains iconId about an launcher ability.
54   * @since 8
55   * @syscap SystemCapability.BundleManager.BundleFramework
56   */
57  readonly iconId: number;
58
59  /**
60   * @name Obtains userId about an launcher ability.
61   * @since 8
62   * @syscap SystemCapability.BundleManager.BundleFramework
63   */
64  readonly userId: number;
65
66  /**
67   * @name Obtains installTime about an launcher ability.
68   * @since 8
69   * @syscap SystemCapability.BundleManager.BundleFramework
70   */
71  readonly installTime : number;
72}
73