提交 e94b5177 编写于 作者: L longwei

fix codex error for bundle

Signed-off-by: Nlongwei <longwei27@huawei.com>
Change-Id: Id82d8ae4d7c2b813094316c828571a30959c9adf
上级 25dbc48d
......@@ -18,8 +18,8 @@ Ability信息,未做特殊说明的属性,均通过[bundle.getAbilityInfo](j
| label | string | 是 | 否 | Ability对用户显示的名称。 |
| description | string | 是 | 否 | Ability的描述。 |
| icon | string | 是 | 否 | Ability的图标资源文件索引。 |
| descriptionId | number | 是 | 否 | Ability的描述id。 |
| iconId | number | 是 | 否 | Ability的图标id。 |
| descriptionId | number | 是 | 否 | Ability的描述的资源id值。 |
| iconId | number | 是 | 否 | Ability的图标的资源id值。 |
| moduleName | string | 是 | 否 | Ability所属的HAP的名称。 |
| process | string | 是 | 否 | Ability的进程,如果不设置,默认为包的名称。 |
| targetAbility | string | 是 | 否 | 当前Ability重用的目标Ability。<br />此属性仅可在FA模型下使用。 |
......@@ -36,7 +36,7 @@ Ability信息,未做特殊说明的属性,均通过[bundle.getAbilityInfo](j
| writePermission | string | 是 | 否 | 向Ability写数据所需的权限。<br />此属性仅可在FA模型下使用。 |
| applicationInfo | [ApplicationInfo](js-apis-bundle-ApplicationInfo.md) | 是 | 否 | 应用程序的配置信息。<br />通过调用[bundle.getAbilityInfo](js-apis-Bundle.md#bundlegetabilityinfodeprecated)接口时,传入GET_ABILITY_INFO_WITH_APPLICATION获取。 |
| uri | string | 是 | 否 | 获取Ability的统一资源标识符(URI)。<br />此属性仅可在FA模型下使用。 |
| labelId | number | 是 | 否 | Ability的标签id。 |
| labelId | number | 是 | 否 | Ability的标签的资源id值。 |
| subType | AbilitySubType | 是 | 否 | Ability中枚举使用的模板的子类型。<br />此属性仅可在FA模型下使用。 |
| metadata<sup>8+</sup> | Array\<[CustomizeData](js-apis-bundle-CustomizeData.md)> | 是 | 否 | ability的元信息。<br />通过调用[bundle.getAbilityInfo](js-apis-Bundle.md#bundlegetabilityinfodeprecated)接口时,传入GET_ABILITY_INFO_WITH_METADATA获取。 |
| enabled<sup>8+</sup> | boolean | 是 | 否 | ability是否可用。 |
......@@ -17,8 +17,8 @@ ElementName信息,标识Ability的基本信息,通过接口[Context.getEleme
| 名称 | 类型 | 可读 | 可写 | 说明 |
| ----------------------- | ---------| ---- | ---- | ------------------------- |
| deviceId | string | 是 | 是 | 设备id。 |
| bundleName | string | 是 | 是 | 应用Bundle名称。 |
| abilityName | string | 是 | 是 | Ability名称。 |
| deviceId | string | 是 | 是 | 设备id。 |
| bundleName | string | 是 | 是 | 应用Bundle名称。 |
| abilityName | string | 是 | 是 | Ability名称。 |
| uri | string | 是 | 是 | 资源标识符。 |
| shortName | string | 是 | 是 | Ability短名称。 |
\ No newline at end of file
| shortName | string | 是 | 是 | Ability的短名称。 |
\ No newline at end of file
......@@ -17,7 +17,7 @@ LauncherAbilityInfo信息,通过接口[innerBundleManager.getLauncherAbilityIn
| --------------- | ---------------------------------------------------- | ---- | ---- | -------------------------------------- |
| applicationInfo | [ApplicationInfo](js-apis-bundle-ApplicationInfo.md) | 是 | 否 | launcher ability的应用程序的配置信息。 |
| elementName | [ElementName](js-apis-bundle-ElementName.md) | 是 | 否 | launcher ability的ElementName信息。 |
| labelId | number | 是 | 否 | launcher ability的标签ID。 |
| iconId | number | 是 | 否 | launcher ability的图标ID。 |
| userId | number | 是 | 否 | launcher ability的用户ID。 |
| labelId | number | 是 | 否 | launcher ability的标签的资源id值。 |
| iconId | number | 是 | 否 | launcher ability的图标的资源id值。 |
| userId | number | 是 | 否 | launcher ability的用户的资源id值。 |
| installTime | number | 是 | 否 | launcher ability的安装时间。 |
\ No newline at end of file
......@@ -13,17 +13,17 @@ HAP信息,系统应用可以通过[bundleManager.getBundleInfo](js-apis-bundle
| --------------------------------- | ------------------------------------------------------------ | ---- | ---- | -------------------- |
| name | string | 是 | 否 | 模块名称。 |
| icon | string | 是 | 否 | 模块图标。 |
| iconId | number | 是 | 否 | 模块图标资源id。 |
| iconId | number | 是 | 否 | 模块图标的资源id值。 |
| label | string | 是 | 否 | 模块标签。 |
| labelId | number | 是 | 否 | 模块标签资源id。 |
| labelId | number | 是 | 否 | 模块标签的资源id值。 |
| description | string | 是 | 否 | 模块描述信息。 |
| descriptionId | number | 是 | 否 | 描述信息资源id。 |
| descriptionId | number | 是 | 否 | 描述信息的资源id值。 |
| mainElementName | string | 是 | 否 | 入口ability信息。 |
| abilitiesInfo | Array\<[AbilityInfo](js-apis-bundleManager-abilityInfo.md)> | 是 | 否 | Ability信息。 |
| extensionAbilitiesInfo | Array\<[ExtensionAbilityInfo](js-apis-bundleManager-extensionAbilityInfo.md)> | 是 | 否 | extensionAbility信息。 |
| metadata | Array\<[Metadata](js-apis-bundleManager-metadata.md)> | 是 | 否 | Ability的元信息。 |
| deviceTypes | Array\<string> | 是 | 否 | 支持运行的设备类型。 |
| installationFree | boolean | 是 | 否 | 是否支持免安装。 |
| hashValue | string | 是 | 否 | Module的Hash值。 |
| moduleSourceDir | string | 是 | 否 | Module的路径。|
| deviceTypes | Array\<string> | 是 | 否 | 可以运行模块的设备类型。 |
| installationFree | boolean | 是 | 否 | 模块是否支持免安装。 |
| hashValue | string | 是 | 否 | 模块的Hash值。 |
| moduleSourceDir | string | 是 | 否 | 模块的路径。|
......@@ -81,7 +81,7 @@ off(type: BundleChangedEvent, callback?: callback\<BundleChangedInfo>): void;
| 参数名 | 类型 | 必填 | 说明 |
| ---------------------------- | -------- | ---- | ---------------------------------------------------------- |
| type| BundleChangedEvent| 是 | 注销监听的事件类型。 |
| callback | callback\<BundleChangedInfo>| | 注销监听的回调函数,当为空时表示注销当前事件的所有callback。 |
| callback | callback\<BundleChangedInfo>| | 注销监听的回调函数,当为空时表示注销当前事件的所有callback。 |
**示例:**
......
......@@ -67,13 +67,13 @@ try {
abilityName: 'MainAbility'
}, (err, data) => {
if (err) {
console.error('Operation failed: error code is ' + err.code + 'and error message is ' + err.message);
console.log(`Operation failed: error code is ${err.code} and error message is ${err.message}`);
} else {
console.info('Operation succeed:' + JSON.stringify(data));
}
});
} catch (err) {
console.error('Operation failed: error code is ' + err.code + 'and error message is ' + err.message);
console.log(`Operation failed: error code is ${err.code} and error message is ${err.message}`);
}
```
......@@ -124,10 +124,10 @@ try {
}).then(data => {
console.info('Operation succeed:' + JSON.stringify(data));
}).catch(err => {
console.error('Operation failed: error code is ' + err.code + 'and error message is ' + err.message);
console.log(`Operation failed: error code is ${err.code} and error message is ${err.message}`);
});
} catch (err) {
console.error('Operation failed: error code is ' + err.code + 'and error message is ' + err.message);
console.log(`Operation failed: error code is ${err.code} and error message is ${err.message}`);
}
```
......@@ -179,13 +179,13 @@ try {
}
], (err, data) => {
if (err) {
console.error('Operation failed: error code is ' + err.code + 'and error message is ' + err.message);
console.log(`Operation failed: error code is ${err.code} and error message is ${err.message}`);
} else {
console.info('Operation succeed:' + JSON.stringify(data));
}
});
} catch (err) {
console.error('Operation failed: error code is ' + err.code + 'and error message is ' + err.message);
console.log(`Operation failed: error code is ${err.code} and error message is ${err.message}`);
}
```
......@@ -243,10 +243,10 @@ try {
]).then(data => {
console.info('Operation succeed:' + JSON.stringify(data));
}).catch(err => {
console.error('Operation failed: error code is ' + err.code + 'and error message is ' + err.message);
console.log(`Operation failed: error code is ${err.code} and error message is ${err.message}`);
});
} catch (err) {
console.error('Operation failed: error code is ' + err.code + 'and error message is ' + err.message);
console.log(`Operation failed: error code is ${err.code} and error message is ${err.message}`);
}
```
......@@ -292,13 +292,13 @@ try {
abilityName: 'MainAbility'
}, 'zh-Hans-CN', (err, data) => {
if (err) {
console.error('Operation failed: error code is ' + err.code + 'and error message is ' + err.message);
console.log(`Operation failed: error code is ${err.code} and error message is ${err.message}`);
} else {
console.info('Operation succeed:' + JSON.stringify(data));
}
});
} catch (err) {
console.error('Operation failed: error code is ' + err.code + 'and error message is ' + err.message);
console.log(`Operation failed: error code is ${err.code} and error message is ${err.message}`);
}
```
......@@ -350,10 +350,10 @@ try {
}, 'zh-Hans-CN').then(data => {
console.info('Operation succeed:' + JSON.stringify(data));
}).catch(err => {
console.error('Operation failed: error code is ' + err.code + 'and error message is ' + err.message);
console.log(`Operation failed: error code is ${err.code} and error message is ${err.message}`);
});
} catch (err) {
console.error('Operation failed: error code is ' + err.code + 'and error message is ' + err.message);
console.log(`Operation failed: error code is ${err.code} and error message is ${err.message}`);
}
```
......@@ -406,13 +406,13 @@ try {
}
], 'zh-Hans-CN', (err, data) => {
if (err) {
console.error('Operation failed: error code is ' + err.code + 'and error message is ' + err.message);
console.log(`Operation failed: error code is ${err.code} and error message is ${err.message}`);
} else {
console.info('Operation succeed:' + JSON.stringify(data));
}
});
} catch (err) {
console.error('Operation failed: error code is ' + err.code + 'and error message is ' + err.message);
console.log(`Operation failed: error code is ${err.code} and error message is ${err.message}`);
}
```
......@@ -471,9 +471,9 @@ try {
], 'zh-Hans-CN').then(data => {
console.info('Operation succeed:' + JSON.stringify(data));
}).catch(err => {
console.error('Operation failed: error code is ' + err.code + 'and error message is ' + err.message);
console.log(`Operation failed: error code is ${err.code} and error message is ${err.message}`);
});
} catch (err) {
console.error('Operation failed: error code is ' + err.code + 'and error message is ' + err.message);
console.log(`Operation failed: error code is ${err.code} and error message is ${err.message}`);
}
```
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册