• 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
16/**
17 * Contains basic Ability information, which uniquely identifies an launcher StatusCallback.
18 * You can use this class to obtain values of the fields set in an callback function,
19 * such as the add, update, remove.
20 * @name Contains basic launcher status callback information, which uniquely identifies an LauncherStatusCallback
21 * @since 8
22 * @syscap SystemCapability.BundleManager.BundleFramework
23 *
24 * @permission ohos.permission.LISTEN_BUNDLE_CHANGE
25 * @systemapi Hide this for inner system use
26 * @deprecated since 9
27 */
28export interface BundleStatusCallback {
29  /**
30   * @name Obtains add callback about an launcherStatusCallback.
31   * @since 8
32   * @syscap SystemCapability.BundleManager.BundleFramework
33   * @permission ohos.permission.LISTEN_BUNDLE_CHANGE
34   *
35   * @systemapi Hide this for inner system use
36   */
37  add: (bundleName : string, userId: number) => void;
38
39  /**
40   * @name Obtains update callback about an launcherStatusCallback.
41   * @since 8
42   * @syscap SystemCapability.BundleManager.BundleFramework
43   * @permission ohos.permission.LISTEN_BUNDLE_CHANGE
44   *
45   * @systemapi Hide this for inner system use
46   */
47  update: (bundleName : string, userId: number) => void;
48
49  /**
50   * @name Obtains remove callback about an launcherStatusCallback.
51   * @since 8
52   * @syscap SystemCapability.BundleManager.BundleFramework
53   * @permission ohos.permission.LISTEN_BUNDLE_CHANGE
54   *
55   * @systemapi Hide this for inner system use
56   */
57  remove: (bundleName : string, userId: number) => void;
58}