diff --git a/api/@ohos.bundle.d.ts b/api/@ohos.bundle.d.ts index 11ebcb70bdaf5d4c05fdc9766937b8a670da511d..c5dc6f9b9d6a4bfbe071a76b7adf93c4f80d38f8 100644 --- a/api/@ohos.bundle.d.ts +++ b/api/@ohos.bundle.d.ts @@ -903,31 +903,42 @@ declare namespace bundle { function getProfileByExtensionAbility(moduleName: string, extensionAbilityName: string, metadataName?: string): Promise>; /** - * Set the disposed status of a specified bundle. + * Set the disposed status of a specified application. * * @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. + * @param appId Indicates the appId of the application. + * @param disposedWant Indicates the disposed want. * @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; + function setDisposedStatus(appId: string, disposedWant: Want, callback: AsyncCallback): void; + function setDisposedStatus(appId: string, disposedWant: Want): Promise; /** - * Obtains the disposed status of a specified bundle. + * Obtains the disposed status of a specified application. * * @since 9 * @syscap SystemCapability.BundleManager.BundleFramework - * @param bundleName Indicates the bundle name of the application. - * @return Returns the disposed status of a specified bundle. + * @param appId Indicates the appId of the application. + * @return Returns the disposed status of a specified application. + * @permission ohos.permission.MANAGE_DISPOSED_APP_STATUS + * @systemapi Hide this for inner system use + */ + function getDisposedStatus(appId: string, callback: AsyncCallback): void; + function getDisposedStatus(appId: string): Promise; + + /** + * Delete the disposed status of a specified application. + * + * @since 9 + * @syscap SystemCapability.BundleManager.BundleFramework + * @param appId Indicates the appId of the application. * @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; + function deleteDisposedStatus(appId: string, callback: AsyncCallback): void; + function deleteDisposedStatus(appId: string): Promise; /** * Obtains configuration information about an application.