diff --git a/api/@ohos.bundle.d.ts b/api/@ohos.bundle.d.ts index b0861005759941b956bfc34374a2e1b5dec9bdde..e095d4e67f9d6d446998a1bbb4d58c763ed9aa6b 100644 --- a/api/@ohos.bundle.d.ts +++ b/api/@ohos.bundle.d.ts @@ -20,7 +20,6 @@ import { AbilityInfo } from './bundle/abilityInfo'; import { ExtensionAbilityInfo } from './bundle/extensionAbilityInfo'; import { Want } from './ability/want'; import { BundleInstaller } from './bundle/bundleInstaller'; -import { ModuleUsageRecord } from './bundle/moduleUsageRecord'; import { PermissionDef } from './bundle/PermissionDef'; import image from './@ohos.multimedia.image'; @@ -503,18 +502,6 @@ declare namespace bundle { function getLaunchWantForBundle(bundleName: string, callback: AsyncCallback): void; function getLaunchWantForBundle(bundleName: string): Promise; - /** - * get module usage record list in descending order of lastLaunchTime. - * - * @since 7 - * @syscap SystemCapability.BundleManager.BundleFramework - * @param maxNum the return size of the records, must be in range of 1 to 1000. - * @return Returns ability usage record list. - * @systemapi hide this for inner system use - */ - function getModuleUsageRecords(maxNum: number, callback: AsyncCallback>): void; - function getModuleUsageRecords(maxNum: number): Promise>; - /** * Clears cache data of a specified application. * diff --git a/api/bundle/moduleUsageRecord.d.ts b/api/bundle/moduleUsageRecord.d.ts deleted file mode 100644 index 4b7f457e9aab64c0305c93210c9698eb40969ec8..0000000000000000000000000000000000000000 --- a/api/bundle/moduleUsageRecord.d.ts +++ /dev/null @@ -1,103 +0,0 @@ -/* - * 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. - */ - -/** - * @name Stores FA usage information. - * @since 7 - * @syscap SystemCapability.BundleManager.BundleFramework - * @permission NA - * - * @systemapi hide this for inner system use - */ - export interface ModuleUsageRecord { - /** - * @default Indicates the name of the bundle containing the module - * @since 7 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - readonly bundleName: string; - /** - * @default Indicates the app label id of this module - * @since 7 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - readonly appLabelId: number; - /** - * @default Indicates the name of this module - * @since 7 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - readonly name: string; - /** - * @default Indicates the label id of this module - * @since 7 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - readonly labelId: number; - /** - * @default Indicates the description id of this module - * @since 7 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - readonly descriptionId: number; - /** - * @default Indicates the ability name of this module - * @since 7 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - readonly abilityName: string; - /** - * @default Indicates the ability label id of this module - * @since 7 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - readonly abilityLabelId: number; - /** - * @default Indicates the ability description id of this module - * @since 7 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - readonly abilityDescriptionId: number; - /** - * @default Indicates the ability icon id of this module - * @since 7 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - readonly abilityIconId: number; - /** - * @default Indicates the launched count of this module - * @since 7 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - readonly launchedCount: number; - /** - * @default Indicates the last launch time of this module - * @since 7 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - readonly lastLaunchTime: number; - /** - * @default Indicates whether the module is removed - * @since 7 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - readonly isRemoved: boolean; - /** - * @default Indicates whether free installation of the module is supported - * @since 7 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - readonly installationFreeSupported: boolean; -} \ No newline at end of file