diff --git a/zh-cn/application-dev/reference/apis/js-apis-Bundle-distributedBundle.md b/zh-cn/application-dev/reference/apis/js-apis-Bundle-distributedBundle.md index 472be9b1a763cf47d800450115c693648ce23971..fd7060cfb6b7bf791c6ec2ea344961d1dc441315 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-Bundle-distributedBundle.md +++ b/zh-cn/application-dev/reference/apis/js-apis-Bundle-distributedBundle.md @@ -46,7 +46,7 @@ SystemCapability.BundleManager.DistributedBundleFramework **参数:** -| 名称 | 类型 | 必填 | 描述 | +| 参数名 | 类型 | 必填 | 说明 | | ----------- | ------------------------------------------------------------ | ---- | -------------------------------------------------- | | elementName | [ElementName](js-apis-bundle-ElementName.md) | 是 | 获得的ElementName信息。 | | callback | AsyncCallback<[RemoteAbilityInfo](js-apis-bundle-remoteAbilityInfo.md)> | 是 | 程序启动作为入参的回调函数,返回远程基本能力信息。 | @@ -75,7 +75,7 @@ SystemCapability.BundleManager.DistributedBundleFramework **参数:** -| 名称 | 类型 | 必填 | 描述 | +| 参数名 | 类型 | 必填 | 说明 | | ----------- | -------------------------------------------- | ---- | ----------------------- | | elementName | [ElementName](js-apis-bundle-ElementName.md) | 是 | 获得的ElementName信息。 | @@ -107,7 +107,7 @@ SystemCapability.BundleManager.DistributedBundleFramework **参数:** -| 名称 | 类型 | 必填 | 描述 | +| 参数名 | 类型 | 必填 | 说明 | | ------------ | ------------------------------------------------------------ | ---- | -------------------------------------------------- | | elementNames | Array<[ElementName](js-apis-bundle-ElementName.md)> | 是 | ElementName信息,最大数组长度为10 | | callback | AsyncCallback< Array<[RemoteAbilityInfo](js-apis-bundle-remoteAbilityInfo.md)>> | 是 | 程序启动作为入参的回调函数,返回远程基本能力信息。 | @@ -136,7 +136,7 @@ SystemCapability.BundleManager.DistributedBundleFramework **参数:** -| 名称 | 类型 | 必填 | 描述 | +| 参数名 | 类型 | 必填 | 说明 | | ------------ | --------------------------------------------------- | ---- | ----------------------- | | elementNames | Array<[ElementName](js-apis-bundle-ElementName.md)> | 是 | ElementName信息,最大数组长度为10。 | 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 696acdc370e7d3d87a16858890399352fbbca04b..fe7607be111aa9327bd671e277f3ccfa0594c337 100755 --- a/zh-cn/application-dev/reference/apis/js-apis-Bundle.md +++ b/zh-cn/application-dev/reference/apis/js-apis-Bundle.md @@ -446,7 +446,7 @@ SystemCapability.BundleManager.BundleFramework | -------- | ------------------------------------------------------------ | ---- | ---------------- | | callback | AsyncCallback<[BundleInstaller](js-apis-bundle-BundleInstaller.md)> | 是 | 安装应用程序包。 | -## bundle.cleanBundleCacheFilesdeprecated +## bundle.cleanBundleCacheFiles8+ deprecated > 从API version 9开始不再维护,建议使用[bundleManager.cleanBundleCacheFiles](js-apis-bundleManager.md#bundlemanagercleanbundlecachefiles)替代。 @@ -473,7 +473,7 @@ SystemCapability.BundleManager.BundleFramework | bundleName | string | 是 | 指示要清除其缓存数据的应用程序包名称. | | callback | AsyncCallback\ | 是 | 为返回操作结果而调用的回调。 | -## bundle.cleanBundleCacheFilesdeprecated +## bundle.cleanBundleCacheFiles8+ deprecated > 从API version 9开始不再维护,建议使用[bundleManager.cleanBundleCacheFiles](js-apis-bundleManager.md#bundlemanagercleanbundlecachefiles)替代。 @@ -505,7 +505,7 @@ SystemCapability.BundleManager.BundleFramework | ------------- | ------------------------------------ | | Promise\ | 返回值为Promise对象,Promise中为空。 | -## bundle.setApplicationEnableddeprecated +## bundle.setApplicationEnabled8+ deprecated > 从API version 9开始不再维护,建议使用[bundleManager.setApplicationEnabled](js-apis-bundleManager.md#bundlemanagersetapplicationenabled)替代。 @@ -533,7 +533,7 @@ SystemCapability.BundleManager.BundleFramework | isEnable | boolean | 是 | 指定是否启用应用程序。true表示启用,false禁用。 | | callback | AsyncCallback\ | 是 | 为返回操作结果而调用的回调。 | -## bundle.setApplicationEnableddeprecated +## bundle.setApplicationEnabled8+ deprecated > 从API version 9开始不再维护,建议使用[bundleManager.setApplicationEnabled](js-apis-bundleManager.md#bundlemanagersetapplicationenabled)替代。 @@ -566,7 +566,7 @@ SystemCapability.BundleManager.BundleFramework | ------------- | ------------------------------------ | | Promise\ | 返回值为Promise对象,Promise中为空。 | -## bundle.setAbilityEnableddeprecated +## bundle.setAbilityEnabled8+ deprecated > 从API version 9开始不再维护,建议使用[bundleManager.setAbilityEnabled](js-apis-bundleManager.md#bundlemanagersetabilityenabled)替代。 @@ -594,7 +594,7 @@ SystemCapability.BundleManager.BundleFramework | isEnable | boolean | 是 | 指定是否启用应用程序。true表示启用,false禁用。 | | callback | AsyncCallback\ | 是 | 为返回操作结果而调用的回调。 | -## bundle.setAbilityEnableddeprecated +## bundle.setAbilityEnabled8+ deprecated > 从API version 9开始不再维护,建议使用[bundleManager.setAbilityEnabled](js-apis-bundleManager.md#bundlemanagersetabilityenabled)替代。 @@ -627,7 +627,7 @@ SystemCapability.BundleManager.BundleFramework | ------------- | ------------------------------------ | | Promise\ | 返回值为Promise对象,Promise中为空。 | -## bundle.getPermissionDefdeprecated +## bundle.getPermissionDef8+ deprecated > 从API version 9开始不再维护,建议使用[bundleManager.getPermissionDef](js-apis-bundleManager.md#bundlemanagergetpermissiondef)替代。 @@ -654,7 +654,7 @@ SystemCapability.BundleManager.BundleFramework | permissionName | string | 是 | 指定权限的名称。 | | callback | AsyncCallback<[PermissionDef](js-apis-bundle-PermissionDef)> | 是 | 程序启动作为入参的回调函数,返回定义的权限信息。 | -## bundle.getPermissionDefdeprecated +## bundle.getPermissionDef8+ deprecated > 从API version 9开始不再维护,建议使用[bundleManager.getPermissionDef](js-apis-bundleManager.md#bundlemanagergetpermissiondef)替代。 @@ -708,7 +708,7 @@ SystemCapability.BundleManager.BundleFramework | 参数名 | 类型 | 必填 | 说明 | | ----------- | ------ | ---- | ------------------------------------------------------------ | | bundleFlags | number | 是 | 用于指定返回的应用信息对象中包含信息的标记。默认值:0,取值范围:参考[BundleFlag说明](#bundleflag)中应用信息相关flag | -| userId | number | 否 | 用户ID。默认值:调用方所在用户,取值范围:大于等于0。 | +| userId | number | 是 | 用户ID。默认值:调用方所在用户,取值范围:大于等于0。 | **返回值:** @@ -750,7 +750,7 @@ SystemCapability.BundleManager.BundleFramework | 参数名 | 类型 | 必填 | 说明 | | ----------- | ------------------------------------------------------------ | ---- | ------------------------------------------------------------ | | bundleFlags | number | 是 | 用于指定返回的应用信息对象中包含信息的标记。默认值:0,取值范围:参考[BundleFlag说明](#bundleflag)中应用信息相关flag | -| userId | number | 否 | 用户ID。默认值:调用方所在用户,取值范围:大于等于0。 | +| userId | number | 是 | 用户ID。默认值:调用方所在用户,取值范围:大于等于0。 | | callback | AsyncCallback> | 是 | 程序启动作为入参的回调函数,返回应用信息列表。 | **示例:** @@ -956,7 +956,7 @@ bundle.getAbilityInfo(bundleName, abilityName, (err, data) => { }) ``` -## bundle.getAbilityLabeldeprecated +## bundle.getAbilityLabel8+ deprecated > 从API version 9开始不再维护,建议使用[bundleManager.getAbilityLabel](js-apis-bundleManager.md#bundlemanagergetabilitylabel)替代。 @@ -998,7 +998,7 @@ bundle.getAbilityLabel(bundleName, abilityName) }) ``` -## bundle.getAbilityLabeldeprecated +## bundle.getAbilityLabel8+ deprecated > 从API version 9开始不再维护,建议使用[bundleManager.getAbilityLabel](js-apis-bundleManager.md#bundlemanagergetabilitylabel)替代。 @@ -1036,7 +1036,7 @@ bundle.getAbilityLabel(bundleName, abilityName, (err, data) => { }) ``` -## bundle.isAbilityEnableddeprecated +## bundle.isAbilityEnabled8+ deprecated > 从API version 9开始不再维护,建议使用[bundleManager.isAbilityEnabled](js-apis-bundleManager.md#bundlemanagerisabilityenabled)替代。 @@ -1074,7 +1074,7 @@ bundle.getAbilityInfo(bundleName, abilityName).then((abilityInfo)=>{ }) ``` -## bundle.isAbilityEnableddeprecated +## bundle.isAbilityEnabled8+ deprecated > 从API version 9开始不再维护,建议使用[bundleManager.isAbilityEnabled](js-apis-bundleManager.md#bundlemanagerisabilityenabled)替代。 @@ -1109,7 +1109,7 @@ bundle.getAbilityInfo(bundleName, abilityName).then((abilityInfo)=>{ }) ``` -## bundle.isApplicationEnableddeprecated +## bundle.isApplicationEnabled8+ deprecated > 从API version 9开始不再维护,建议使用[bundleManager.isApplicationEnabled](js-apis-bundleManager.md#bundlemanagerisapplicationenabled)替代。 @@ -1145,7 +1145,7 @@ bundle.isApplicationEnabled(bundleName) }) ``` -## bundle.isApplicationEnableddeprecated +## bundle.isApplicationEnabled8+ deprecated > 从API version 9开始不再维护,建议使用[bundleManager.isApplicationEnabled](js-apis-bundleManager.md#bundlemanagerisapplicationenabled)替代。 @@ -1388,7 +1388,7 @@ bundle.getLaunchWantForBundle(bundleName, (err, data) => { ``` -## bundle.getNameForUiddeprecated +## bundle.getNameForUid8+ deprecated > 从API version 9开始不再维护,建议使用[bundleManager.getBundleNameByUid](js-apis-bundleManager.md#bundlemanagergetbundlenamebyuid)替代。 @@ -1423,7 +1423,7 @@ bundle.getNameForUid(uid) }) ``` -## bundle.getNameForUiddeprecated +## bundle.getNameForUid8+ deprecated > 从API version 9开始不再维护,建议使用[bundleManager.getBundleNameByUid](js-apis-bundleManager.md#bundlemanagergetbundlenamebyuid)替代。 @@ -1456,7 +1456,7 @@ bundle.getNameForUid(uid, (err, data) => { ``` -## bundle.getAbilityIcondeprecated +## bundle.getAbilityIcon8+ deprecated > 从API version 9开始不再维护,建议使用[bundleManager.getAbilityIcon](js-apis-bundleManager.md#bundlemanagergetabilityicon)替代。 @@ -1497,7 +1497,7 @@ bundle.getAbilityIcon(bundleName, abilityName) }) ``` -## bundle.getAbilityIcondeprecated +## bundle.getAbilityIcon8+ deprecated > 从API version 9开始不再维护,建议使用[bundleManager.getAbilityIcon](js-apis-bundleManager.md#bundlemanagergetabilityicon)替代。 @@ -1593,7 +1593,7 @@ bundle.getAbilityIcon(bundleName, abilityName, (err, data) => { **系统能力:** SystemCapability.BundleManager.BundleFramework -| 参数名 | 类型 | 可读 | 可写 | 说明 | +| 名称 | 类型 | 可读 | 可写 | 说明 | | ------ | ------ | ---- | ---- | ----------------------------------------------------- | | userId | number | 是 | 是 | 用户ID。默认值:调用方所在用户,取值范围:大于等于0。 | @@ -1605,7 +1605,7 @@ Ability类型 **系统能力:** 以下各项对应的系统能力均为SystemCapability.BundleManager.BundleFramework -| 参数名 | 类型 | 说明 | +| 名称 | 值 | 说明 | | ------- | ---- | --------------------------- | | UNKNOWN | 无 | 未知Ability类型 | | PAGE | 无 | 表示基于Page模板开发的FA,用于提供与用户交互的能力 | @@ -1620,7 +1620,7 @@ Ability类型 **系统能力:** 以下各项对应的系统能力均为SystemCapability.BundleManager.BundleFramework -| 参数名 | 类型 | 说明 | +| 名称 | 值 | 说明 | | ------------- | ---- | ------------------------ | | UNSPECIFIED | 无 | 屏幕方向--不指定 | | LANDSCAPE | 无 | 屏幕方向--横屏 | @@ -1634,7 +1634,7 @@ Ability类型 **系统能力:** 以下各项对应的系统能力均为SystemCapability.BundleManager.BundleFramework -| 参数名 | 类型 | 说明 | +| 名称 | 值 | 说明 | | --------- | ---- | ------------------- | | SINGLETON | 0 | Ability只有一个实例 | | STANDARD | 1 | Ability有多个实例 | @@ -1646,7 +1646,7 @@ Ability的子类型 **系统能力:** 以下各项对应的系统能力均为SystemCapability.BundleManager.BundleFramework -| 参数名 | 类型 | 说明 | +| 名称 | 值 | 说明 | | ----------- | ---- | ----------------------------- | | UNSPECIFIED | 0 | 未定义Ability子类型 | | CA | 1 | Ability子类型是带有 UI 的服务 | @@ -1658,7 +1658,7 @@ Ability的子类型 **系统能力:** 以下各项对应的系统能力均为SystemCapability.BundleManager.BundleFramework -| 参数名 | 类型 | 说明 | +| 名称 | 值 | 说明 | | ---------- | ---- | -------- | | AUTO_MODE | -1 | 自动模式 | | DARK_MODE | 0 | 黑色模式 | @@ -1673,7 +1673,7 @@ Ability的子类型 **系统能力:** 以下各项对应的系统能力均为SystemCapability.BundleManager.BundleFramework -| 参数名 | 类型 | 说明 | +| 名称 | 值 | 说明 | | ------------------ | ---- | ------------ | | PERMISSION_DENIED | -1 | 拒绝授予权限 | | PERMISSION_GRANTED | 0 | 授予权限 | \ No newline at end of file diff --git a/zh-cn/application-dev/reference/apis/js-apis-appControl.md b/zh-cn/application-dev/reference/apis/js-apis-appControl.md index 54bfbd04652fcaa8e3fe6cb81a7ac64dfec53d20..f024a3bf03ea03db49db87750e4dc55e14c90d16 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-appControl.md +++ b/zh-cn/application-dev/reference/apis/js-apis-appControl.md @@ -39,7 +39,7 @@ setDisposedStatus(appId: string, disposedWant: Want): Promise\ | ------------------------- | ------------------ | | Promise\ | Promise对象。无返回结果的Promise对象。 | -**错误码** +**错误码:** 以下错误码的详细介绍请参见[ohos.bundle错误码](../errorcodes/errorcode-bundle.md)。 @@ -85,7 +85,7 @@ setDisposedStatus(appId: string, disposedWant: Want, callback: AsyncCallback\ | 是 | 回调函数,当设置处置状态成功,err为undefined,否则为错误对象。 | -**错误码** +**错误码:** 以下错误码的详细介绍请参见[ohos.bundle错误码](../errorcodes/errorcode-bundle.md)。 @@ -136,7 +136,7 @@ getDisposedStatus(appId: string): Promise\; | ------------------------- | ------------------ | | Promise\ | Promise对象,返回应用的处置状态。 | -**错误码** +**错误码:** 以下错误码的详细介绍请参见[ohos.bundle错误码](../errorcodes/errorcode-bundle.md)。 @@ -180,7 +180,7 @@ getDisposedStatus(appId: string, callback: AsyncCallback\): void; | appId | string | 是 | 要查询的应用的appId
appId是应用的唯一标识,由应用的包名和签名信息决定,获取方法参见[获取应用的appId](#获取应用的appid)。 | | callback | AsyncCallback\ | 是 | 回调函数。当获取应用的处置状态成功时,err为undefined,data为获取到的处置状态;否则为错误对象。 | -**错误码** +**错误码:** 以下错误码的详细介绍请参见[ohos.bundle错误码](../errorcodes/errorcode-bundle.md)。 @@ -230,7 +230,7 @@ deleteDisposedStatus(appId: string): Promise\ | ------------------------- | ------------------ | | Promise\ | Promise对象,无返回结果的Promise对象 | -**错误码** +**错误码:** 以下错误码的详细介绍请参见[ohos.bundle错误码](../errorcodes/errorcode-bundle.md)。 @@ -274,7 +274,7 @@ deleteDisposedStatus(appId: string, callback: AsyncCallback\) : void | appId | string | 是 | 要查询的应用的appId。
appId是应用的唯一标识,由应用的包名和签名信息决定,获取方法参见[获取应用的appId](#获取应用的appid)。 | | callback | AsyncCallback\ | 是 | 回调函数,当设置处置状态成功时,err返回undefined。否则回调函数返回具体错误对象。 | -**错误码** +**错误码:** 以下错误码的详细介绍请参见[ohos.bundle错误码](../errorcodes/errorcode-bundle.md)。 diff --git a/zh-cn/application-dev/reference/apis/js-apis-bundle-BundleInstaller.md b/zh-cn/application-dev/reference/apis/js-apis-bundle-BundleInstaller.md index 785b892076bc1bd7226501b2372eadd05da25678..eed36b5c390982d6146d05e43a6b9e4a26eb223b 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-bundle-BundleInstaller.md +++ b/zh-cn/application-dev/reference/apis/js-apis-bundle-BundleInstaller.md @@ -25,7 +25,7 @@ SystemCapability.BundleManager.BundleFramework **参数:** -| 名称 | 类型 | 必填 | 描述 | +| 参数名 | 类型 | 必填 | 说明 | | --------------- | ---------------------------------------------------- | ---- | ------------------------------------------------------------ | | bundleFilePaths | Array<string> | 是 | 指示存储应用程序包的路径。路径应该是当前应用程序的数据目录的相对路径。 | | param | [InstallParam](#installparam) | 是 | 指定安装所需的其他参数。 | @@ -51,7 +51,7 @@ SystemCapability.BundleManager.BundleFramework **参数:** -| 名称 | 类型 | 必填 | 描述 | +| 参数名 | 类型 | 必填 | 说明 | | ---------- | ---------------------------------------------------- | ---- | ---------------------------------------------- | | bundleName | string | 是 | 包名 | | param | [InstallParam](#installparam) | 是 | 指定安装所需的其他参数。 | @@ -77,7 +77,7 @@ SystemCapability.BundleManager.BundleFramework **参数:** -| 名称 | 类型 | 必填 | 描述 | +| 参数名 | 类型 | 必填 | 说明 | | ---------- | ---------------------------------------------------- | ---- | ---------------------------------------------- | | bundleName | string | 是 | 包名 | | param | [InstallParam](#installparam) | 是 | 指定安装所需的其他参数。 | diff --git a/zh-cn/application-dev/reference/apis/js-apis-bundleManager.md b/zh-cn/application-dev/reference/apis/js-apis-bundleManager.md index 831e412913495983681409371a4572a81400dfd0..c65a50198f9bc5398d8f907891ee071e026ce069 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-bundleManager.md +++ b/zh-cn/application-dev/reference/apis/js-apis-bundleManager.md @@ -364,6 +364,7 @@ getBundleInfo(bundleName: string, bundleFlags: number, callback: AsyncCallback\< | 错误码ID | 错误信息 | | -------- | ------------------------------------- | | 17700001 | The specified bundleName is not found. | +| 17700004 | The specified user ID is not found. | | 17700026 | The specified bundle is disabled. | **示例:** @@ -981,6 +982,7 @@ queryAbilityInfo(want: Want, abilityFlags: [number](#abilityflag), callback: Asy | -------- | -------------------------------------- | | 17700001 | The specified bundleName is not found. | | 17700003 | The specified ability is not found. | +| 17700004 | The specified userId is invalid. | | 17700026 | The specified bundle is disabled. | | 17700029 | The specified ability is disabled. | @@ -1169,10 +1171,11 @@ queryExtensionAbilityInfo(want: Want, extensionAbilityType: [ExtensionAbilityTyp 以下错误码的详细介绍请参见[ohos.bundle错误码](../errorcodes/errorcode-bundle.md)。 -| 错误码ID | 错误信息 | -| -------- | ------------------------------------------- | +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | | 17700001 | The specified bundleName is not found. | | 17700003 | The specified extensionAbility is not found. | +| 17700004 | The specified userId is invalid. | | 17700026 | The specified bundle is disabled. | **示例:** @@ -2078,6 +2081,7 @@ getLaunchWantForBundle(bundleName: string, callback: AsyncCallback\): void | 错误码ID | 错误信息 | | -------- | --------------------------------------| | 17700001 | The specified bundleName is not found. | +| 17700004 | The specified user ID is not found. | | 17700026 | The specified bundle is disabled. | **示例:** @@ -2280,11 +2284,11 @@ getProfileByExtensionAbility(moduleName: string, extensionAbilityName: string, m **参数:** -| 名称 | 类型 | 必填 | 说明 | +| 参数名 | 类型 | 必填 | 说明 | | -------------------- | ----------------------------- | ---- | ------------------------------------------------------------ | -| moduleName | string | 是 | 表示应用程序的moduleName。 | -| extensionAbilityName | string | 是 | 表示应用程序的extensionAbilityName。 | -| metadataName | string | 是 | 表示应用程序的metadataName。 | +| moduleName | string | 是 | 表示应用程序的moduleName。 | +| extensionAbilityName | string | 是 | 表示应用程序的extensionAbilityName。 | +| metadataName | string | 是 | 表示应用程序的metadataName。 | | callback | AsyncCallback> | 是 | 回调函数,当获取成功时,err为null,data为获取到的Array\;否则为错误对象。 | **错误码:** @@ -2329,7 +2333,7 @@ getProfileByExtensionAbility(moduleName: string, extensionAbilityName: string, m **参数:** -| 名称 | 类型 | 必填 | 说明 | +| 参数名 | 类型 | 必填 | 说明 | | -------------------- | ------ | ---- | ---------------------------------- | | moduleName | string | 是 | 表示应用程序的moduleName。 | | extensionAbilityName | string | 是 | 表示应用程序的extensionAbilityName。 | @@ -2395,9 +2399,9 @@ getPermissionDef(permissionName: string, callback: AsyncCallback\<[PermissionDef **参数:** -| 名称 | 类型 | 必填 | 说明 | +| 参数名 | 类型 | 必填 | 说明 | | -------------- | ------------------------------------------------------------ | ---- | ------------------------------------------------------------ | -| permissionName | string | 是 | 表示权限名称。 | +| permissionName | string | 是 | 表示权限名称。 | | callback | AsyncCallback\<[PermissionDef](js-apis-bundleManager-permissionDef.md)> | 是 | 回调函数,当获取成功时,err为null,data为获取到的Array\;否则为错误对象。 | **错误码:** @@ -2440,7 +2444,7 @@ getPermissionDef(permissionName: string): Promise\<[PermissionDef](js-apis-bundl **参数:** -| 名称 | 类型 | 必填 | 说明 | +| 参数名 | 类型 | 必填 | 说明 | | -------------- | ------ | ---- | -------------- | | permissionName | string | 是 | 表示权限参数名。 | diff --git a/zh-cn/application-dev/reference/apis/js-apis-defaultAppManager.md b/zh-cn/application-dev/reference/apis/js-apis-defaultAppManager.md index d361c9959ac6406e2543ab892dd3ad29eadea919..858141bcd8c3622bd4ca751e557417c028c18312 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-defaultAppManager.md +++ b/zh-cn/application-dev/reference/apis/js-apis-defaultAppManager.md @@ -138,7 +138,7 @@ getDefaultApplication(type: string, userId?: number): Promise\ | 错误码ID | 错误信息 | | -------- | ----------------------------------------- | -| 17700004 | The specified user id is not found. | +| 17700004 | The specified user ID is not found. | | 17700023 | The specified default app does not exist. | | 17700025 | The specified type is invalid. | @@ -189,7 +189,7 @@ getDefaultApplication(type: string, userId: number, callback: AsyncCallback\) : void | 错误码ID | 错误信息 | | -------- | ----------------------------------------- | -| 17700004 | The specified user id is not found. | +| 17700004 | The specified user ID is not found. | | 17700023 | The specified default app does not exist. | | 17700025 | The specified type is invalid. | @@ -302,9 +302,9 @@ setDefaultApplication(type: string, elementName: ElementName, userId?: number): | 错误码ID | 错误信息 | | -------- | ---------------------------------------------- | -| 17700004 | The specified user id is not found. | +| 17700004 | The specified user ID is not found. | | 17700025 | The specified type is invalid. | -| 17700028 | The specified ability and type does not match. | +| 17700028 | The specified ability does not match the type. | **示例:** @@ -369,9 +369,9 @@ setDefaultApplication(type: string, elementName: ElementName, userId: number, ca | 错误码ID | 错误信息 | | -------- | ---------------------------------------------- | -| 17700004 | The specified user id is not found. | +| 17700004 | The specified user ID is not found. | | 17700025 | The specified type is invalid. | -| 17700028 | The specified ability and type does not match. | +| 17700028 | The specified ability does not match the type. | **示例:** @@ -429,9 +429,9 @@ setDefaultApplication(type: string, elementName: ElementName, callback: AsyncCal | 错误码ID | 错误信息 | | -------- | ---------------------------------------------- | -| 17700004 | The specified user id is not found. | +| 17700004 | The specified user ID is not found. | | 17700025 | The specified type is invalid. | -| 17700028 | The specified ability and type does not match. | +| 17700028 | The specified ability does not match the type. | **示例:** @@ -487,7 +487,7 @@ resetDefaultApplication(type: string, userId?: number): Promise\ | 错误码ID | 错误信息 | | -------- | ----------------------------------- | -| 17700004 | The specified user id is not found. | +| 17700004 | The specified user ID is not found. | | 17700025 | The specified type is invalid. | **示例:** @@ -538,7 +538,7 @@ resetDefaultApplication(type: string, userId: number, callback: AsyncCallback\) : void; | 错误码ID | 错误信息 | | -------- | ----------------------------------- | -| 17700004 | The specified user id is not found. | +| 17700004 | The specified user ID is not found. | | 17700025 | The specified type is invalid. | **示例:** diff --git a/zh-cn/application-dev/reference/apis/js-apis-dispatchInfo.md b/zh-cn/application-dev/reference/apis/js-apis-dispatchInfo.md deleted file mode 100644 index facfc200a5d4cb84090fb641aecc3392461d4429..0000000000000000000000000000000000000000 --- a/zh-cn/application-dev/reference/apis/js-apis-dispatchInfo.md +++ /dev/null @@ -1,22 +0,0 @@ -# DispatchInfo - - - -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** -> 本模块首批接口从API version 9 开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 - - - -调度信息类 - -## DispatchInfo - -**系统能力**: 以下各项对应的系统能力均为SystemCapability.BundleManager.BundleFramework.FreeInstall - -**系统API:**此接口为系统接口,三方应用不支持调用 - -| 名称 | 类型 | 可读 | 可写 | 说明 | -| ------------------ | ------ | ---- | ---- | ------------------------ | -| version | string | 是 | 否 | 包含dispatchInfo版本信息 | -| dispatchAPIVersion | string | 是 | 否 | 包含免安装接口版本号 | - diff --git a/zh-cn/application-dev/reference/apis/js-apis-distributedBundle.md b/zh-cn/application-dev/reference/apis/js-apis-distributedBundle.md index 4609135f3f65cdd95c9aad4a917e26a5633f4966..55fb10d7444ac0b12ae812f95bbfbe27be230b39 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-distributedBundle.md +++ b/zh-cn/application-dev/reference/apis/js-apis-distributedBundle.md @@ -53,7 +53,7 @@ getRemoteAbilityInfo(elementName: ElementName, callback: AsyncCallback\; |----------|-------------------------| | 17700001 | The specified bundle name is not found. | | 17700003 | The specified ability name is not found. | -| 17700007 | The specified device id is not found. | +| 17700007 | The specified device ID is not found. | | 17700027 | The distributed service is not running. | **示例:** @@ -158,7 +158,7 @@ getRemoteAbilityInfo(elementNames: Array\, callback: AsyncCallback\ |----------|-------------------------| | 17700001 | The specified bundle name is not found. | | 17700003 | The specified ability name is not found. | -| 17700007 | The specified device id is not found. | +| 17700007 | The specified device ID is not found. | | 17700027 | The distributed service is not running. | **示例:** @@ -221,7 +221,7 @@ getRemoteAbilityInfo(elementNames: Array\): Promise\, locale: string, callback |---------------|-------------------------| | 17700001 | The specified bundle name is not found. | | 17700003 | The specified ability name is not found. | -| 17700007 | The specified device id is not found. | +| 17700007 | The specified device ID is not found. | | 17700027 | The distributed service is not running. | **示例:** @@ -449,7 +449,7 @@ getRemoteAbilityInfo(elementNames: Array\, locale: string): Promise |----------|-------------------------| | 17700001 | The specified bundle name is not found. | | 17700003 | The specified ability name is not found. | -| 17700007 | The specified device id is not found. | +| 17700007 | The specified device ID is not found. | | 17700027 | The distributed service is not running. | **示例:** diff --git a/zh-cn/application-dev/reference/apis/js-apis-installer.md b/zh-cn/application-dev/reference/apis/js-apis-installer.md index b7372b8c3822deaaa0d036ca3903dae4856a0226..d50c9bcc1f319a6c3e30f558097ec82d23cedf53 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-installer.md +++ b/zh-cn/application-dev/reference/apis/js-apis-installer.md @@ -115,17 +115,17 @@ install(hapFilePaths: Array<string>, installParam: InstallParam, callback: 以下错误码的详细介绍请参见[ohos.bundle错误码](../errorcodes/errorcode-bundle.md)。 -| 错误码ID | 错误信息 | -| -------- | ------------------------------------------------------ | -| 17700004 | The specified userId is not existed. | -| 17700010 | To parse file of config.json or module.json failed. | -| 17700011 | To verify signature failed. | -| 17700012 | Invalid hap file path or too large file size. | -| 17700015 | Multiple haps have inconsistent configured information. | -| 17700016 | No disk space left for installation. | -| 17700017 | Downgrade installation is prohibited. | -| 17700101 | The system service is excepted. | -| 17700103 | I/O operation is failed. | +| 错误码ID | 错误信息 | +| -------- | ------------------------------------------------------------ | +| 17700004 | The specified user ID is not found. | +| 17700010 | Failed to install the HAP because the HAP fails to be parsed. | +| 17700011 | Failed to install the HAP because the HAP signature fails to be verified. | +| 17700012 | Failed to install the HAP because the HAP path is invalid or the HAP is too large. | +| 17700015 | Failed to install the HAPs because they have different configuration information. | +| 17700016 | Failed to install the HAP because of insufficient system disk space. | +| 17700017 | Failed to install the HAP since the version of the HAP to install is too early. | +| 17700101 | The system service is excepted. | +| 17700103 | I/O operation is failed. | **示例:** @@ -181,9 +181,9 @@ uninstall(bundleName: string, installParam: InstallParam, callback: AsyncCallbac | 错误码ID | 错误信息 | | -------- | ------------------------------------------------------------ | -| 17700004 | The specified userId is not existed. | +| 17700004 | The specified user ID is not found. | | 17700020 | The specified bundle is pre-installed bundle which cannot be uninstalled. | -| 17700101 | The system service is excepted. | +| 17700101 | The system service is excepted. | **示例:** @@ -239,7 +239,7 @@ recover(bundleName: string, installParam: InstallParam, callback: AsyncCallback& | 错误码ID | 错误信息 | | -------- | ----------------------------------- | -| 17700004 | The specified userId is not existed. | +| 17700004 | The specified user ID is not found. | **示例:** diff --git a/zh-cn/application-dev/reference/apis/js-apis-launcherBundleManager.md b/zh-cn/application-dev/reference/apis/js-apis-launcherBundleManager.md index f0bdc396400ea3c39d2dc4d543a5695df077fd36..8026d31849d082111d171b3134522528263eaef3 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-launcherBundleManager.md +++ b/zh-cn/application-dev/reference/apis/js-apis-launcherBundleManager.md @@ -27,7 +27,7 @@ getLauncherAbilityInfo(bundleName: string, userId: number, callback: AsyncCallba **参数:** -| 参数名 | 类型 | 必填 | 描述 | +| 参数名 | 类型 | 必填 | 说明 | | ---------- | ------ | ---- | -------------- | | bundleName | string | 是 | 应用程序包名称。 | | userId | number | 是 | 被查询的用户id。| @@ -78,7 +78,7 @@ getLauncherAbilityInfo(bundleName: string, userId: number) : Promise