diff --git a/api/@ohos.bundle.d.ts b/api/@ohos.bundle.d.ts index efe17b4b6..2bacf03f7 100644 --- a/api/@ohos.bundle.d.ts +++ b/api/@ohos.bundle.d.ts @@ -587,33 +587,33 @@ declare namespace bundle { /** * Obtains the label of a specified ability. - * + * * @since 8 * @syscap SystemCapability.BundleManager.BundleFramework * @param bundleName Indicates the bundle name of the application to which the ability belongs. * @param abilityName Indicates the ability name. - * @permission ohos.permission.GET_BUNDLE_INFO_PRIVILEGED + * @permission ohos.permission.GET_BUNDLE_INFO_PRIVILEGED, ohos.permission.GET_BUNDLE_INFO * @return Returns the label representing the label of the specified ability. */ function getAbilityLabel(bundleName: string, abilityName: string, callback: AsyncCallback): void; function getAbilityLabel(bundleName: string, abilityName: string): Promise; - + /** * Obtains the icon of a specified ability. - * + * * @since 8 * @syscap SystemCapability.BundleManager.BundleFramework * @param bundleName Indicates the bundle name of the application to which the ability belongs. * @param abilityName Indicates the ability name. * @return Returns the PixelMap object representing the icon of the specified ability. - * @permission ohos.permission.GET_BUNDLE_INFO_PRIVILEGED + * @permission ohos.permission.GET_BUNDLE_INFO_PRIVILEGED, ohos.permission.GET_BUNDLE_INFO */ function getAbilityIcon(bundleName: string, abilityName: string, callback: AsyncCallback): void; function getAbilityIcon(bundleName: string, abilityName: string): Promise; - + /** * Checks whether a specified ability is enabled. - * + * * @since 8 * @syscap SystemCapability.BundleManager.BundleFramework * @param info Indicates information about the ability to check. @@ -621,10 +621,10 @@ declare namespace bundle { */ function isAbilityEnabled(info: AbilityInfo, callback: AsyncCallback): void; function isAbilityEnabled(info: AbilityInfo): Promise; - + /** * Checks whether a specified application is enabled. - * + * * @since 8 * @syscap SystemCapability.BundleManager.BundleFramework * @param bundleName Indicates the bundle name of the application.