From 688d2e7e8b76125529813479162c34e65428e3e4 Mon Sep 17 00:00:00 2001 From: s00494828 Date: Thu, 7 Apr 2022 21:43:06 +0800 Subject: [PATCH] add isHmService Signed-off-by: s00494828 Change-Id: Id60218f75ecbf4a30b9ce54aff0cf442843f6c5b --- api/bundle/bundleInstaller.d.ts | 7 +++++++ api/bundle/hapModuleInfo.d.ts | 8 +++++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/api/bundle/bundleInstaller.d.ts b/api/bundle/bundleInstaller.d.ts index 6717988243..b7a6539ffd 100644 --- a/api/bundle/bundleInstaller.d.ts +++ b/api/bundle/bundleInstaller.d.ts @@ -44,6 +44,13 @@ export interface InstallParam { * @syscap SystemCapability.BundleManager.BundleFramework */ isKeepData: boolean; + + /** + * @default Indicates whether to install a service or not + * @since 9 + * @syscap SystemCapability.BundleManager.BundleFramework + */ + isHmService: boolean; } /** diff --git a/api/bundle/hapModuleInfo.d.ts b/api/bundle/hapModuleInfo.d.ts index 477ca86021..5b8fc2dd78 100644 --- a/api/bundle/hapModuleInfo.d.ts +++ b/api/bundle/hapModuleInfo.d.ts @@ -115,7 +115,6 @@ export interface HapModuleInfo { * @syscap SystemCapability.BundleManager.BundleFramework */ readonly installationFree: boolean; - /** * @default Indicates main elementName of the module * @since 8 @@ -136,4 +135,11 @@ export interface HapModuleInfo { * */ readonly metadata: Array; + /** + * @default Indicates whether the bundle is a service + * @since 9 + * @syscap SystemCapability.BundleManager.BundleFramework + * + */ + readonly isHmService: boolean; } \ No newline at end of file -- Gitee