diff --git a/zh-cn/application-dev/reference/apis/js-apis-Bundle.md b/zh-cn/application-dev/reference/apis/js-apis-Bundle.md index 3822de9bcaf1999823e40f765705724678305694..31c01248e4de6d1c430cd22de0e71185c660a30e 100755 --- a/zh-cn/application-dev/reference/apis/js-apis-Bundle.md +++ b/zh-cn/application-dev/reference/apis/js-apis-Bundle.md @@ -73,7 +73,7 @@ getApplicationInfo(bundleName: string, bundleFlags: number, userId: number, call **需要权限:** -ohos.permission.GET_BUNDLE_INFO_PRIVILEGED,ohos.permission.GET_BUNDLE_INFO +ohos.permission.GET_BUNDLE_INFO_PRIVILEGED 或 ohos.permission.GET_BUNDLE_INFO **系统能力:** @@ -310,7 +310,7 @@ getBundleInfo(bundleName: string, bundleFlags: number, callback: AsyncCallback\< **需要权限:** -ohos.permission.GET_BUNDLE_INFO_PRIVILEGED,ohos.permission.GET_BUNDLE_INFO +ohos.permission.GET_BUNDLE_INFO_PRIVILEGED 或 ohos.permission.GET_BUNDLE_INFO **系统能力:** @@ -541,7 +541,7 @@ getAbilityInfo(bundleName: string, abilityName: string, callback: AsyncCallback\ **需要权限:** -ohos.permission.GET_BUNDLE_INFO_PRIVILEGED,ohos.permission.GET_BUNDLE_INFO +ohos.permission.GET_BUNDLE_INFO_PRIVILEGED 或 ohos.permission.GET_BUNDLE_INFO **系统能力:** @@ -696,7 +696,7 @@ getAbilityLabel(bundleName: string, abilityName: string, callback : AsyncCallbac **需要权限:** -ohos.permission.GET_BUNDLE_INFO_PRIVILEGED,ohos.permission.GET_BUNDLE_INFO +ohos.permission.GET_BUNDLE_INFO_PRIVILEGED 或 ohos.permission.GET_BUNDLE_INFO **系统能力:** @@ -845,10 +845,6 @@ isAbilityEnabled(info : AbilityInfo, callback : AsyncCallback\): void 以异步方法根据给定的AbilityInfo查询ability是否已经启用,使用callback形式返回结果。 -**需要权限:** - -无 - **系统能力:** SystemCapability.BundleManager.BundleFramework @@ -916,10 +912,6 @@ isApplicationEnabled(bundleName: string, callback : AsyncCallback\): vo 以异步方法根据给定的包名查询指定应用程序是否已经启用,使用callback形式返回结果。 -**需要权限:** - -无 - **系统能力:** SystemCapability.BundleManager.BundleFramework @@ -1038,6 +1030,10 @@ queryAbilityByWant(want: Want, bundleFlags: number, callback: AsyncCallback8+ | Array\<[CustomizeData](js-apis-bundle-CustomizeData.md)> | 是 | 否 | ability的自定义信息 | -| metaData9+ | Array\<[Metadata](js-apis-bundle-Metadata.md)> | 是 | 否 | ability的元信息 | +| metadata9+ | Array\<[Metadata](js-apis-bundle-Metadata.md)> | 是 | 否 | ability的元信息 | | enabled8+ | boolean | 是 | 否 | ability是否可用 | \ No newline at end of file diff --git a/zh-cn/application-dev/reference/apis/js-apis-bundle-ApplicationInfo.md b/zh-cn/application-dev/reference/apis/js-apis-bundle-ApplicationInfo.md index 5d13b4af752e6a808843b5fa6ae99db7265847bf..a5e123f857841cff5ce4f1c1903c403f6ba0a68e 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-bundle-ApplicationInfo.md +++ b/zh-cn/application-dev/reference/apis/js-apis-bundle-ApplicationInfo.md @@ -9,7 +9,7 @@ 应用程序信息 - +## ApplicationInfo **系统能力**: 以下各项对应的系统能力均为SystemCapability.BundleManager.BundleFramework @@ -34,8 +34,8 @@ | entryDir | string | 是 | 否 | 应用程序的文件保存路径 | | codePath8+ | string | 是 | 否 | 应用程序的安装目录 | | metaData8+ | Map\> | 是 | 否 | 应用程序的自定义元信息 | -| metaData9+ | Map\> | 是 | 否 | 应用程序的元信息 | +| metadata9+ | Map\> | 是 | 否 | 应用程序的元信息 | | removable8+ | boolean | 是 | 否 | 应用程序是否可以被移除 | | accessTokenId8+ | number | 是 | 否 | 应用程序的accessTokenId | | uid8+ | number | 是 | 否 | 应用程序的uid | -| entityType9+ | string | 是 | 否 | 应用程序的实体类型 | \ No newline at end of file +| entityType8+ | string | 是 | 否 | 应用程序的实体类型 | \ No newline at end of file diff --git a/zh-cn/application-dev/reference/apis/js-apis-bundle-BundleInfo.md b/zh-cn/application-dev/reference/apis/js-apis-bundle-BundleInfo.md index 8ad6499fbc76965e014a9b3dbac8a6ec9a67f757..6789b322f4ac47caa7583b5a9f0a09da9c2ad68d 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-bundle-BundleInfo.md +++ b/zh-cn/application-dev/reference/apis/js-apis-bundle-BundleInfo.md @@ -9,7 +9,7 @@ 应用包的信息 - +## BundleInfo **系统能力:** 以下各项对应的系统能力均为SystemCapability.BundleManager.BundleFramework diff --git a/zh-cn/application-dev/reference/apis/js-apis-bundle-CustomizeData.md b/zh-cn/application-dev/reference/apis/js-apis-bundle-CustomizeData.md index 173da93e2641804e8ce74cf822f8e937f03b0c0e..f5063c17395b3ac8f8a0e0dd542b71b3ce356dcf 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-bundle-CustomizeData.md +++ b/zh-cn/application-dev/reference/apis/js-apis-bundle-CustomizeData.md @@ -9,7 +9,7 @@ 自定义元数据 - +## CustomizeData **系统能力**: 以下各项对应的系统能力均为SystemCapability.BundleManager.BundleFramework diff --git a/zh-cn/application-dev/reference/apis/js-apis-bundle-ExtensionAbilityInfo.md b/zh-cn/application-dev/reference/apis/js-apis-bundle-ExtensionAbilityInfo.md index 025299504c469c4daa5305ee56096041e1af7f85..879d9f4b48468c5a564f9e9685dcc262e60fe762 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-bundle-ExtensionAbilityInfo.md +++ b/zh-cn/application-dev/reference/apis/js-apis-bundle-ExtensionAbilityInfo.md @@ -9,7 +9,7 @@ ExtensionAbility信息 - +## ExtensionAbilityInfo **系统能力**: 以下各项对应的系统能力均为SystemCapability.BundleManager.BundleFramework @@ -25,7 +25,7 @@ ExtensionAbility信息 | extensionAbilityType | bundle.ExtensionAbilityType | 是 | 否 | ExtensionAbility类型 | | permissions | Array\ | 是 | 否 | 被其他应用ExtensionAbility调用时需要申请的权限集合 | | applicationInfo | [ApplicationInfo](js-apis-bundle-ApplicationInfo.md) | 是 | 否 | 应用程序的配置信息 | -| metaData | Array\<[Metadata](js-apis-bundle-Metadata.md)> | 是 | 否 | ExtensionAbility的元信息 | +| metadata | Array\<[Metadata](js-apis-bundle-Metadata.md)> | 是 | 否 | ExtensionAbility的元信息 | | enabled | boolean | 是 | 否 | ExtensionAbility是否可用 | | readPermission | string | 是 | 否 | 读取ExtensionAbility数据所需的权限 | | writePermission | string | 是 | 否 | 向ExtensionAbility写数据所需的权限 | \ No newline at end of file diff --git a/zh-cn/application-dev/reference/apis/js-apis-bundle-HapModuleInfo.md b/zh-cn/application-dev/reference/apis/js-apis-bundle-HapModuleInfo.md index 32bf5db17e3dac348c518c405c06725501908447..f559d74a989fdaf9bcdb668e88135a10134ee13f 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-bundle-HapModuleInfo.md +++ b/zh-cn/application-dev/reference/apis/js-apis-bundle-HapModuleInfo.md @@ -9,7 +9,7 @@ Hap模块信息 - +## HapModuleInfo **系统能力**: 以下各项对应的系统能力均为SystemCapability.BundleManager.BundleFramework diff --git a/zh-cn/application-dev/reference/apis/js-apis-bundle-Metadata.md b/zh-cn/application-dev/reference/apis/js-apis-bundle-Metadata.md index e5d5848cc31269f130a598c4902fd460df5bd6ff..b9e45a88042adcc1e9eebf46c6d344a04f8c5add 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-bundle-Metadata.md +++ b/zh-cn/application-dev/reference/apis/js-apis-bundle-Metadata.md @@ -3,13 +3,13 @@ > ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** -> 本模块首批接口从API version 9 开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 +> 本模块首批接口从API version 8 开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 元数据信息 - +## Metadata **系统能力**: 以下各项对应的系统能力均为SystemCapability.BundleManager.BundleFramework diff --git a/zh-cn/application-dev/reference/apis/js-apis-bundle-ModuleInfo.md b/zh-cn/application-dev/reference/apis/js-apis-bundle-ModuleInfo.md index 71c210c73ea2ef8b9082572a87f70c071fb58dda..3e8cd9e8069be8f116527e831d7eadb6ec407124 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-bundle-ModuleInfo.md +++ b/zh-cn/application-dev/reference/apis/js-apis-bundle-ModuleInfo.md @@ -9,7 +9,7 @@ 应用程序的模块信息 - +## ModuleInfo **系统能力**: 以下各项对应的系统能力均为SystemCapability.BundleManager.BundleFramework diff --git a/zh-cn/application-dev/reference/apis/js-apis-zlib.md b/zh-cn/application-dev/reference/apis/js-apis-zlib.md index 8d7de4e167879de4e4ba8ef20ce6d2a4654dcd2e..101fd03f35a0c5b8bcf48abb326ef261b57df9a2 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-zlib.md +++ b/zh-cn/application-dev/reference/apis/js-apis-zlib.md @@ -21,11 +21,11 @@ zipFile(inFile:string, outFile:string, options: Options): Promise<void> **参数:** -| 参数名 | 类型 | 必填 | 描述 | -| ------- | ------------------- | ---- | ------------------------------------------- | -| inFile | string | 是 | 指定压缩的文件夹路径或者文件路径 | -| outFile | string | 是 | 指定的压缩结果的文件路径(文件的扩展名zip) | -| options | [Options](#options) | 否 | 压缩的可选参数 | +| 参数名 | 类型 | 必填 | 描述 | +| ------- | ------------------- | ---- | ------------------------------------------------------------ | +| inFile | string | 是 | 指定压缩的文件夹路径或者文件路径,对应的路径参考[FA模型](js-apis-Context.md),[stage模型](js-apis-application-context.md) | +| outFile | string | 是 | 指定的压缩结果的文件路径(文件的扩展名zip) | +| options | [Options](#options) | 否 | 压缩的可选参数 | **返回值:** @@ -85,11 +85,11 @@ unzipFile(inFile:string, outFile:string, options: Options): Promise<void> **参数:** -| 参数名 | 类型 | 必填 | 描述 | -| ------- | ------------------- | ---- | ----------------------------------- | -| inFile | string | 是 | 指定解压的文件路径(文件扩展名zip) | -| outFile | string | 是 | 指定的解压文件路径 | -| options | [Options](#options) | 否 | 解压的可选参数 | +| 参数名 | 类型 | 必填 | 描述 | +| ------- | ------------------- | ---- | ------------------------------------------------------------ | +| inFile | string | 是 | 指定压缩的文件夹路径或者文件路径,对应的路径参考[FA模型](js-apis-Context.md),[stage模型](js-apis-application-context.md) | +| outFile | string | 是 | 指定的解压文件路径 | +| options | [Options](#options) | 否 | 解压的可选参数 | **返回值:** @@ -120,14 +120,18 @@ zlib.unzipFile(inFile, outFile, options).then((data) => { ## Options +**系统能力:** SystemCapability.BundleManager.Zlib + | 参数名 | 类型 | 必填 | 说明 | | -------- | ---------------- | ---- | --------------------------------------------------------- | | level | CompressLeve | 否 | [参考zip.CompressLevel枚举定义](#zip.CompressLevel) | | memLevel | MemLevel | 否 | [参考zip.MemLevel枚举定义](#zip.MemLevel) | -| userId | CompressStrategy | 否 | [参考zip.CompressStrategy枚举定义](#zip.CompressStrategy) | +| strategy | CompressStrategy | 否 | [参考zip.CompressStrategy枚举定义](#zip.CompressStrategy) | ## zip.MemLevel +**系统能力:** SystemCapability.BundleManager.Zlib + | 名称 | 值 | 说明 | | ----------------- | ---- | -------------------------------- | | MEM_LEVEL_MIN | 1 | zip 接口在压缩过程中最小使用内存 | @@ -136,6 +140,8 @@ zlib.unzipFile(inFile, outFile, options).then((data) => { ## zip.CompressLevel +**系统能力:** SystemCapability.BundleManager.Zlib + | 名称 | 值 | 说明 | | ---------------------------------- | ---- | ----------------- | | COMPRESS_LEVEL_NO_COMPRESSION | 0 | 压缩率为0压缩等级 | @@ -145,6 +151,8 @@ zlib.unzipFile(inFile, outFile, options).then((data) => { ## zip.CompressStrategy +**系统能力:** SystemCapability.BundleManager.Zlib + | 名称 | 值 | 说明 | | ---------------------------------- | ---- | ------------------------ | | COMPRESS_STRATEGY_DEFAULT_STRATEGY | 0 | 常规数据策略 | @@ -155,6 +163,8 @@ zlib.unzipFile(inFile, outFile, options).then((data) => { ## zip.ErrorCode +**系统能力:** SystemCapability.BundleManager.Zlib + | 名称 | 值 | 说明 | | ---------------- | ---- | ------------ | | ERROR_CODE_OK | 0 | 函数调用成功 |