diff --git a/api/@ohos.bundle.d.ts b/api/@ohos.bundle.d.ts index 9a23556dcd7fd703c148809b8ceb64225c52acce..f782acad23d9c2851a3f07707e46034a8e7b0eca 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;