mirror of
https://gitee.com/openharmony/interface_sdk-js
synced 2024-11-23 15:20:17 +00:00
f056bb55b1
Signed-off-by: sunjiakun <sunjiakun5@huawei.com>
71 lines
2.3 KiB
TypeScript
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;
|
|
}
|