From 5e76281a775bf0276b16850aa3db8ee0c3aa8553 Mon Sep 17 00:00:00 2001 From: wangtiantian Date: Thu, 19 May 2022 11:20:14 +0800 Subject: [PATCH] IssueNo: #I587XG : bms add setDisposed interface Description:bms add setDisposed interface Sig:SIG_ApplicaitonFramework Feature or Bugfix:Feature Binary Source:No Signed-off-by: wangtiantian --- api/@ohos.bundle.d.ts | 29 ++++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/api/@ohos.bundle.d.ts b/api/@ohos.bundle.d.ts index 5172be5e13..9137c82de3 100644 --- a/api/@ohos.bundle.d.ts +++ b/api/@ohos.bundle.d.ts @@ -713,7 +713,7 @@ declare namespace bundle { */ function getAbilityLabel(bundleName: string, moduleName: string, abilityName: string, callback: AsyncCallback): void; function getAbilityLabel(bundleName: string, moduleName: string, abilityName: string): Promise; - + /** * Obtains the icon of a specified ability. * @@ -727,6 +727,33 @@ declare namespace bundle { */ function getAbilityIcon(bundleName: string, moduleName: string, abilityName: string, callback: AsyncCallback): void; function getAbilityIcon(bundleName: string, moduleName: string, abilityName: string): Promise; + + /** + * Set the disposed status of a specified bundle. + * + * @since 9 + * @syscap SystemCapability.BundleManager.BundleFramework + * @param bundleName Indicates the bundle name of the application. + * @param status Indicates the disposed status. + * @return Returns the disposed status of a specified bundle. + * @permission ohos.permission.MANAGE_DISPOSED_APP_STATUS + * @systemapi Hide this for inner system use + */ + function setDisposedStatus(bundleName: string, status: number, callback: AsyncCallback): void; + function setDisposedStatus(bundleName: string, status: number,): Promise; + + /** + * Obtains the disposed status of a specified bundle. + * + * @since 9 + * @syscap SystemCapability.BundleManager.BundleFramework + * @param bundleName Indicates the bundle name of the application. + * @return Returns the disposed status of a specified bundle. + * @permission ohos.permission.MANAGE_DISPOSED_APP_STATUS + * @systemapi Hide this for inner system use + */ + function getDisposedStatus(bundleName: string, callback: AsyncCallback): void; + function getDisposedStatus(bundleName: string): Promise; } export default bundle; -- Gitee