From 46198f9e8104b72cc923307f934452140d0a6f86 Mon Sep 17 00:00:00 2001 From: wangtiantian Date: Wed, 13 Jul 2022 16:03:16 +0800 Subject: [PATCH] IssueNo:#I5GWGC:delete interface Description:delete interface Sig:SIG_ApplicaitonFramework Feature or Bugfix:Feature Binary Source:No Signed-off-by: wangtiantian --- api/@ohos.bundle.d.ts | 1 + api/bundle/abilityInfo.d.ts | 1 + api/bundle/bundleInfo.d.ts | 1 + api/bundle/moduleInfo.d.ts | 2 +- api/bundle/shortcutInfo.d.ts | 90 +++++++++++++++++++++++++++++++++++- 5 files changed, 93 insertions(+), 2 deletions(-) diff --git a/api/@ohos.bundle.d.ts b/api/@ohos.bundle.d.ts index 0b2eff47d6..38ca03845b 100644 --- a/api/@ohos.bundle.d.ts +++ b/api/@ohos.bundle.d.ts @@ -165,6 +165,7 @@ declare namespace bundle { * @syscap SystemCapability.BundleManager.BundleFramework * @import NA * @permission NA + * @deprecated since 9 */ export enum AbilitySubType { UNSPECIFIED = 0, diff --git a/api/bundle/abilityInfo.d.ts b/api/bundle/abilityInfo.d.ts index b1ae1d907f..674d354f16 100644 --- a/api/bundle/abilityInfo.d.ts +++ b/api/bundle/abilityInfo.d.ts @@ -139,6 +139,7 @@ export interface AbilityInfo { * @since 7 * @syscap SystemCapability.BundleManager.BundleFramework * @FAModelOnly + * @deprecated since 9 */ readonly subType: bundle.AbilitySubType; diff --git a/api/bundle/bundleInfo.d.ts b/api/bundle/bundleInfo.d.ts index 4da8310f43..99222cd70e 100644 --- a/api/bundle/bundleInfo.d.ts +++ b/api/bundle/bundleInfo.d.ts @@ -142,6 +142,7 @@ export interface BundleInfo { * @default Obtains configuration information about an ability * @since 7 * @syscap SystemCapability.BundleManager.BundleFramework + * @deprecated sin 9 */ readonly abilityInfos: Array; diff --git a/api/bundle/moduleInfo.d.ts b/api/bundle/moduleInfo.d.ts index f961a10b9d..2e97c51257 100644 --- a/api/bundle/moduleInfo.d.ts +++ b/api/bundle/moduleInfo.d.ts @@ -18,7 +18,7 @@ * @since 7 * @syscap SystemCapability.BundleManager.BundleFramework * @permission NA - * + * @deprecated since 9, use HapModuleInfo */ export interface ModuleInfo { /** diff --git a/api/bundle/shortcutInfo.d.ts b/api/bundle/shortcutInfo.d.ts index 98c0a85563..e49e16b6f0 100644 --- a/api/bundle/shortcutInfo.d.ts +++ b/api/bundle/shortcutInfo.d.ts @@ -47,7 +47,7 @@ * @since 7 * @syscap SystemCapability.BundleManager.BundleFramework * @permission NA - * + * @deprecated since 9, use ShortcutInfo systemapi */ export interface ShortcutInfo { /** @@ -123,6 +123,94 @@ */ readonly isEnabled?: boolean; + /** + * @default Indicates the moduleName of the shortcut + * @since 9 + * @syscap SystemCapability.BundleManager.BundleFramework + */ + readonly moduleName?: string; + } + + /** + * @name Provides information about a shortcut, including the shortcut ID and label. + * @since 9 + * @syscap SystemCapability.BundleManager.BundleFramework + * @permission NA + * @systemapi Hide this for inner system use + */ + export interface ShortcutInfo { + /** + * @default Indicates the ID of the application to which this shortcut belongs + * @since 9 + * @syscap SystemCapability.BundleManager.BundleFramework + */ + readonly id: string; + /** + * @default Indicates the name of the bundle containing the shortcut + * @since 9 + * @syscap SystemCapability.BundleManager.BundleFramework + */ + readonly bundleName: string; + /** + * @default Indicates the host ability of the shortcut + * @since 9 + * @syscap SystemCapability.BundleManager.BundleFramework + */ + readonly hostAbility: string; + /** + * @default Indicates the icon of the shortcut + * @since 9 + * @syscap SystemCapability.BundleManager.BundleFramework + */ + readonly icon: string; + /** + * @default Indicate s the icon id of the shortcut + * @since 9 + * @syscap SystemCapability.BundleManager.BundleFramework + */ + readonly iconId: number; + /** + * @default Indicates the label of the shortcut + * @since 9 + * @syscap SystemCapability.BundleManager.BundleFramework + */ + readonly label: string; + /** + * @default Indicates the label id of the shortcut + * @since 9 + * @syscap SystemCapability.BundleManager.BundleFramework + */ + readonly labelId: number; + /** + * @default Indicates the disableMessage of the shortcut + * @since 9 + * @syscap SystemCapability.BundleManager.BundleFramework + */ + readonly disableMessage: string; + /** + * @default Indicates the wants of the shortcut + * @since 9 + * @syscap SystemCapability.BundleManager.BundleFramework + */ + readonly wants: Array; + /** + * @default Indicates whether the shortcut is static + * @since 9 + * @syscap SystemCapability.BundleManager.BundleFramework + */ + readonly isStatic?: boolean + /** + * @default Indicates whether the shortcut is homeshortcut + * @since 9 + * @syscap SystemCapability.BundleManager.BundleFramework + */ + readonly isHomeShortcut?: boolean; + /** + * @default Indicates whether the shortcut is enabled + * @since 9 + * @syscap SystemCapability.BundleManager.BundleFramework + */ + readonly isEnabled?: boolean; /** * @default Indicates the moduleName of the shortcut * @since 9 -- Gitee