From d10caf7300d8d4b858f0792ec1e967eb7a03a8f5 Mon Sep 17 00:00:00 2001 From: dy Date: Tue, 12 Apr 2022 17:57:24 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E8=80=81=E5=8C=96=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: dy --- api/@ohos.bundle.d.ts | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/api/@ohos.bundle.d.ts b/api/@ohos.bundle.d.ts index 9a23556dcd..f782acad23 100644 --- a/api/@ohos.bundle.d.ts +++ b/api/@ohos.bundle.d.ts @@ -620,6 +620,32 @@ declare namespace bundle { */ function isApplicationEnabled(bundleName: string, callback: AsyncCallback): void; function isApplicationEnabled(bundleName: string): Promise; + + /** + * Set the module wether need upgrade + * + * @since 9 + * @syscap SystemCapability.BundleManager.BundleFramework + * @param bundleName Indicates the bundle name of the application. + * @param moduleName Indicates the module name of the application. + * @param isNeedUpdate Indicates isNeedUpdate of the application. + * @systemapi Hide this for inner system use + */ + function updateModuleUpgradeFlag(bundleName: string, moduleName: string, isNeedUpdate:boolean,callback: AsyncCallback):void; + function updateModuleUpgradeFlag(bundleName: string, moduleName: string, isNeedUpdate:boolean): Promise; + + /** + * Checks whether a specified module is removable. + * + * @since 9 + * @syscap SystemCapability.BundleManager.BundleFramework + * @param bundleName Indicates the bundle name of the application. + * @param moduleName Indicates the module name of the application. + * @returns Returns true if the module is removable; returns false otherwise. + * @systemapi Hide this for inner system use + */ + function isModuleRemovable(bundleName: string, moduleName: string, callback: AsyncCallback): void; + function isModuleRemovable(bundleName: string, moduleName: string): Promise; } export default bundle; -- Gitee