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