From 7fcb9f22831c53f3f54401cf0a86a104e4413740 Mon Sep 17 00:00:00 2001 From: wusongqing Date: Fri, 26 Aug 2022 14:46:48 +0800 Subject: [PATCH] update docs against 7625 Signed-off-by: wusongqing --- .../apis/js-apis-bundle-BundleInstaller.md | 42 ++++++++++++++----- .../apis/js-apis-bundle-PermissionDef.md | 3 +- .../apis/js-apis-bundle-ShortcutInfo.md | 2 + .../apis/js-apis-bundle-remoteAbilityInfo.md | 4 +- 4 files changed, 38 insertions(+), 13 deletions(-) diff --git a/en/application-dev/reference/apis/js-apis-bundle-BundleInstaller.md b/en/application-dev/reference/apis/js-apis-bundle-BundleInstaller.md index 7c86528db5..3dd7cf31bb 100644 --- a/en/application-dev/reference/apis/js-apis-bundle-BundleInstaller.md +++ b/en/application-dev/reference/apis/js-apis-bundle-BundleInstaller.md @@ -3,13 +3,8 @@ The **BundleInstaller** module provides APIs for installing, updating, and deleting bundles on devices. > **NOTE** -> > The initial APIs of this module are supported since API version 7. Newly added APIs will be marked with a superscript to indicate their earliest API version. -## System Capability - -SystemCapability.BundleManager.BundleFramework - ## BundleInstaller.install install(bundleFilePaths: Array<string>, param: InstallParam, callback: AsyncCallback<InstallStatus>): void; @@ -24,6 +19,8 @@ ohos.permission.INSTALL_BUNDLE SystemCapability.BundleManager.BundleFramework +**System API**: This is a system API and cannot be called by third-party applications. + **Parameters** | Name | Type | Mandatory| Description | @@ -46,6 +43,8 @@ ohos.permission.INSTALL_BUNDLE SystemCapability.BundleManager.BundleFramework +**System API**: This is a system API and cannot be called by third-party applications. + **Parameters** | Name | Type | Mandatory| Description | @@ -54,7 +53,7 @@ SystemCapability.BundleManager.BundleFramework | param | [InstallParam](#installparam) | Yes | Parameters required for the installation or uninstall. | | callback | AsyncCallback<[InstallStatus](#installstatus)> | Yes | Callback used to return the installation status.| -## BundleInstaller.recover +## BundleInstaller.recover8+ recover(bundleName: string, param: InstallParam, callback: AsyncCallback<InstallStatus>): void; @@ -68,6 +67,8 @@ ohos.permission.INSTALL_BUNDLE SystemCapability.BundleManager.BundleFramework +**System API**: This is a system API and cannot be called by third-party applications. + **Parameters** | Name | Type | Mandatory| Description | @@ -76,17 +77,34 @@ SystemCapability.BundleManager.BundleFramework | param | [InstallParam](#installparam) | Yes | Parameters required for the installation or uninstall. | | callback | AsyncCallback<[InstallStatus](#installstatus)> | Yes | Callback used to return the installation status.| +## HashParam9+ + +Describes the parameters required for bundle installation or uninstall. + + **System capability**: SystemCapability.BundleManager.BundleFramework + + **System API**: This is a system API and cannot be called by third-party applications. + +| Name | Type | Description | +| ---------- | ------ | ---------------- | +| moduleName | string | Module name of the application.| +| hashValue | string | Hash value. | + ## InstallParam Describes the parameters required for bundle installation or uninstall. **System capability**: SystemCapability.BundleManager.BundleFramework -| Name | Type | Description | -| ----------- | ------- | ------------------ | -| userId | number | User ID. | -| installFlag | number | Installation flag. | -| isKeepData | boolean | Whether data is kept.| + **System API**: This is a system API and cannot be called by third-party applications. + +| Name | Type | Description | +| ------------------------------ | ------------------------------ | ------------------ | +| userId | number | User ID. | +| installFlag | number | Installation flag. | +| isKeepData | boolean | Whether data is kept.| +| hashParams9+ | Array<[HashParam](#hashparam)> | Hash parameters. | +| crowdtestDeadline9+ | number | Time when the test package is killed.| ## InstallStatus @@ -94,6 +112,8 @@ Describes the bundle installation status. **System capability**: SystemCapability.BundleManager.BundleFramework + **System API**: This is a system API and cannot be called by third-party applications. + | Name | Type | Readable| Writable| Description | | ------------- | ------------------------------------------------------------ | ---- | ---- | ------------------------------ | | status | bundle.[InstallErrorCode](js-apis-Bundle.md#installerrorcode) | Yes | No | Installation or uninstall error code. | diff --git a/en/application-dev/reference/apis/js-apis-bundle-PermissionDef.md b/en/application-dev/reference/apis/js-apis-bundle-PermissionDef.md index 4ebc8d4051..d93fcec0ec 100644 --- a/en/application-dev/reference/apis/js-apis-bundle-PermissionDef.md +++ b/en/application-dev/reference/apis/js-apis-bundle-PermissionDef.md @@ -10,10 +10,11 @@ The **PermissionDef** module provides permission details defined in the configur **System capability**: SystemCapability.BundleManager.BundleFramework +**System API**: This is a system API and cannot be called by third-party applications. + | Name | Type | Readable| Writable| Description | | -------------- | ------ | ---- | ---- | -------------- | | permissionName | string | Yes | No | Name of the permission. | | grantMode | number | Yes | No | Grant mode of the permission.| | labelId | number | Yes | No | Label ID of the permission. | | descriptionId | number | Yes | No | Description ID of the permission. | - diff --git a/en/application-dev/reference/apis/js-apis-bundle-ShortcutInfo.md b/en/application-dev/reference/apis/js-apis-bundle-ShortcutInfo.md index 8b2cf35004..d45f34389b 100644 --- a/en/application-dev/reference/apis/js-apis-bundle-ShortcutInfo.md +++ b/en/application-dev/reference/apis/js-apis-bundle-ShortcutInfo.md @@ -12,6 +12,8 @@ Describes the information about the target to which the shortcut points. **System capability**: SystemCapability.BundleManager.BundleFramework +**System API**: This is a system API and cannot be called by third-party applications. + | Name | Type | Readable| Writable| Description | | ------------------------- | ------ | ---- | ---- | -------------------- | | targetBundle | string | Yes | No | Target bundle of the shortcut.| diff --git a/en/application-dev/reference/apis/js-apis-bundle-remoteAbilityInfo.md b/en/application-dev/reference/apis/js-apis-bundle-remoteAbilityInfo.md index 4210ac5223..f44ea5c33a 100644 --- a/en/application-dev/reference/apis/js-apis-bundle-remoteAbilityInfo.md +++ b/en/application-dev/reference/apis/js-apis-bundle-remoteAbilityInfo.md @@ -8,7 +8,9 @@ The **RemoteAbilityInfo** module provides information about a remote ability. ## RemoteAbilityInfo -**System capability**: SystemCapability.BundleManager.BundleFramework +**System capability**: SystemCapability.BundleManager.DistributedBundleFramework + +**System API**: This is a system API and cannot be called by third-party applications. | Name | Type | Readable| Writable| Description | | ----------- | -------------------------------------------- | ---- | ---- | ----------------------- | -- GitLab