interface_sdk-js/api/bundle/bundleStatusCallback.d.ts
sunjiakun f056bb55b1 API Lint
Signed-off-by: sunjiakun <sunjiakun5@huawei.com>
2024-07-19 15:40:13 +08:00

71 lines
2.3 KiB
TypeScript

/*
* Copyright (c) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* @file
* @kit AbilityKit
*/
/**
* Contains basic Ability information, which uniquely identifies an launcher StatusCallback.
* You can use this class to obtain values of the fields set in an callback function,
* such as the add, update, remove.
* Contains basic launcher status callback information, which uniquely identifies an LauncherStatusCallback
*
* @interface BundleStatusCallback
* @permission ohos.permission.LISTEN_BUNDLE_CHANGE
* @syscap SystemCapability.BundleManager.BundleFramework
* @systemapi Hide this for inner system use
* @since 8
* @deprecated since 9
*/
export interface BundleStatusCallback {
/**
* Obtains add callback about an launcherStatusCallback.
*
* @permission ohos.permission.LISTEN_BUNDLE_CHANGE
* @type { function }
* @syscap SystemCapability.BundleManager.BundleFramework
* @systemapi Hide this for inner system use
* @since 8
* @deprecated since 9
*/
add: (bundleName: string, userId: number) => void;
/**
* Obtains update callback about an launcherStatusCallback.
*
* @permission ohos.permission.LISTEN_BUNDLE_CHANGE
* @type { function }
* @syscap SystemCapability.BundleManager.BundleFramework
* @systemapi Hide this for inner system use
* @since 8
* @deprecated since 9
*/
update: (bundleName: string, userId: number) => void;
/**
* Obtains remove callback about an launcherStatusCallback.
*
* @permission ohos.permission.LISTEN_BUNDLE_CHANGE
* @type { function }
* @syscap SystemCapability.BundleManager.BundleFramework
* @systemapi Hide this for inner system use
* @since 8
* @deprecated since 9
*/
remove: (bundleName: string, userId: number) => void;
}