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 * Contains basic launcher status callback information, which uniquely identifies an LauncherStatusCallback 21 * 22 * @interface BundleStatusCallback 23 * @permission ohos.permission.LISTEN_BUNDLE_CHANGE 24 * @syscap SystemCapability.BundleManager.BundleFramework 25 * @systemapi Hide this for inner system use 26 * @since 8 27 * @deprecated since 9 28 */ 29export interface BundleStatusCallback { 30 /** 31 * Obtains add callback about an launcherStatusCallback. 32 * 33 * @permission ohos.permission.LISTEN_BUNDLE_CHANGE 34 * @syscap SystemCapability.BundleManager.BundleFramework 35 * @systemapi Hide this for inner system use 36 * @since 8 37 * @deprecated since 9 38 */ 39 add: (bundleName: string, userId: number) => void; 40 41 /** 42 * Obtains update callback about an launcherStatusCallback. 43 * 44 * @permission ohos.permission.LISTEN_BUNDLE_CHANGE 45 * @syscap SystemCapability.BundleManager.BundleFramework 46 * @systemapi Hide this for inner system use 47 * @since 8 48 * @deprecated since 9 49 */ 50 update: (bundleName: string, userId: number) => void; 51 52 /** 53 * Obtains remove callback about an launcherStatusCallback. 54 * 55 * @permission ohos.permission.LISTEN_BUNDLE_CHANGE 56 * @syscap SystemCapability.BundleManager.BundleFramework 57 * @systemapi Hide this for inner system use 58 * @since 8 59 * @deprecated since 9 60 */ 61 remove: (bundleName: string, userId: number) => void; 62} 63