未验证 提交 b11b7e20 编写于 作者: O openharmony_ci 提交者: Gitee

!3612 Fix wrong version of Ability

Merge pull request !3612 from xuzhihao/master
......@@ -18,7 +18,7 @@ var context = featureAbility.getContext();
context.getOrCreateLocalDir()
```
## Context.getOrCreateLocalDir
## Context.getOrCreateLocalDir<sup>7+</sup>
getOrCreateLocalDir(callback: AsyncCallback\<string>): void
......@@ -46,7 +46,7 @@ context.getOrCreateLocalDir((err, data)=>{
## Context.getOrCreateLocalDir
## Context.getOrCreateLocalDir<sup>7+</sup>
getOrCreateLocalDir(): Promise\<string>
......@@ -74,7 +74,7 @@ context.getOrCreateLocalDir().then((data) => {
## Context.verifyPermission
## Context.verifyPermission<sup>7+</sup>
verifyPermission(permission: string, options: PermissionOptions, callback: AsyncCallback\<number>): void
......@@ -103,7 +103,7 @@ bundle.getBundleInfo('com.context.test', 1, (datainfo) =>{
## Context.verifyPermission
## Context.verifyPermission<sup>7+</sup>
verifyPermission(permission: string, callback: AsyncCallback\<number>): void
......@@ -126,7 +126,7 @@ var context = featureAbility.getContext();
context.verifyPermission("com.example.permission")
```
## Context.verifyPermission
## Context.verifyPermission<sup>7+</sup>
verifyPermission(permission: string, options?: PermissionOptions): Promise\<number>
......@@ -161,7 +161,7 @@ context.verifyPermission('com.context.permission',Permission).then((data) => {
## Context.requestPermissionsFromUser
## Context.requestPermissionsFromUser<sup>7+</sup>
requestPermissionsFromUser(permissions: Array\<string>, requestCode: number, resultCallback: AsyncCallback<[PermissionRequestResult](#permissionrequestresult)>): void
......@@ -197,7 +197,7 @@ context.requestPermissionsFromUser(
## Context.getApplicationInfo
## Context.getApplicationInfo<sup>7+</sup>
getApplicationInfo(callback: AsyncCallback\<ApplicationInfo>): void
......@@ -221,7 +221,7 @@ context.getApplicationInfo()
## Context.getApplicationInfo
## Context.getApplicationInfo<sup>7+</sup>
getApplicationInfo(): Promise\<ApplicationInfo>
......@@ -248,7 +248,7 @@ context.getApplicationInfo().then((data) => {
## Context.getBundleName
## Context.getBundleName<sup>7+</sup>
getBundleName(callback: AsyncCallback\<string>): void
......@@ -272,7 +272,7 @@ context.getBundleName()
## Context.getBundleName
## Context.getBundleName<sup>7+</sup>
getBundleName(): Promise\<string>
......@@ -299,7 +299,7 @@ context.getBundleName().then((data) => {
## Context.getProcessInfo
## Context.getProcessInfo<sup>7+</sup>
getProcessInfo(callback: AsyncCallback\<ProcessInfo>): void
......@@ -323,7 +323,7 @@ context.getProcessInfo()
## Context.getProcessInfo
## Context.getProcessInfo<sup>7+</sup>
getProcessInfo(): Promise\<ProcessInfo>
......@@ -350,7 +350,7 @@ context.getProcessInfo().then((data) => {
## Context.getElementName
## Context.getElementName<sup>7+</sup>
getElementName(callback: AsyncCallback\<ElementName>): void
......@@ -376,7 +376,7 @@ context.getElementName()
## Context.getElementName
## Context.getElementName<sup>7+</sup>
getElementName(): Promise\<ElementName>
......@@ -403,7 +403,7 @@ context.getElementName().then((data) => {
});
```
## Context.getProcessName
## Context.getProcessName<sup>7+</sup>
getProcessName(callback: AsyncCallback\<string>): void
......@@ -427,7 +427,7 @@ context.getProcessName()
## Context.getProcessName
## Context.getProcessName<sup>7+</sup>
getProcessName(): Promise\<string>
......@@ -454,7 +454,7 @@ context.getProcessName().then((data) => {
## Context.getCallingBundle
## Context.getCallingBundle<sup>7+</sup>
getCallingBundle(callback: AsyncCallback\<string>): void
......@@ -478,7 +478,7 @@ context.getCallingBundle()
## Context.getCallingBundle
## Context.getCallingBundle<sup>7+</sup>
getCallingBundle(): Promise\<string>
......@@ -503,7 +503,7 @@ context.getCallingBundle().then((data) => {
});
```
## Context.getCacheDir<sup>6+</sup>
## Context.getCacheDir
getCacheDir(callback: AsyncCallback\<string>): void
......@@ -531,7 +531,7 @@ context.getCacheDir((err, data) => {
});
```
## Context.getCacheDir<sup>6+</sup>
## Context.getCacheDir
getCacheDir(): Promise\<string>
......@@ -556,7 +556,7 @@ context.getCacheDir().then((data) => {
});
```
## Context.getFilesDir<sup>6+</sup>
## Context.getFilesDir
getFilesDir(callback: AsyncCallback\<string>): void
......@@ -584,7 +584,7 @@ context.getFilesDir((err, data) => {
});
```
## Context.getFilesDir<sup>6+</sup>
## Context.getFilesDir
getFilesDir(): Promise\<string>
......@@ -609,7 +609,7 @@ context.getFilesDir().then((data) => {
});
```
## Context.getOrCreateDistributedDir
## Context.getOrCreateDistributedDir<sup>7+</sup>
getOrCreateDistributedDir(callback: AsyncCallback\<string>): void
......@@ -639,7 +639,7 @@ context.getOrCreateDistributedDir((err, data) => {
});
```
## Context.getOrCreateDistributedDir
## Context.getOrCreateDistributedDir<sup>7+</sup>
getOrCreateDistributedDir(): Promise\<string>
......@@ -665,7 +665,7 @@ context.getOrCreateDistributedDir().then((data) => {
});
```
## Context.getAppType
## Context.getAppType<sup>7+</sup>
getAppType(callback: AsyncCallback\<string>): void
......@@ -693,7 +693,7 @@ context.getAppType((err, data) => {
});
```
## Context.getAppType
## Context.getAppType<sup>7+</sup>
getAppType(): Promise\<string>
......@@ -717,7 +717,7 @@ context.getAppType().then((data) => {
});
```
## Context.getHapModuleInfo
## Context.getHapModuleInfo<sup>7+</sup>
getHapModuleInfo(callback: AsyncCallback\<HapModuleInfo>): void
......@@ -745,7 +745,7 @@ context.getHapModuleInfo((err, data) => {
});
```
## Context.getHapModuleInfo
## Context.getHapModuleInfo<sup>7+</sup>
getHapModuleInfo(): Promise\<HapModuleInfo>
......@@ -769,7 +769,7 @@ context.getHapModuleInfo().then((data) => {
});
```
## Context.getAppVersionInfo
## Context.getAppVersionInfo<sup>7+</sup>
getAppVersionInfo(callback: AsyncCallback\<HapModuleInfo>): void
......@@ -797,7 +797,7 @@ context.getAppVersionInfo((err, data) => {
});
```
## Context.getAppVersionInfo
## Context.getAppVersionInfo<sup>7+</sup>
getAppVersionInfo(): Promise\<AppVersionInfo>
......@@ -821,7 +821,7 @@ context.getAppVersionInfo().then((data) => {
});
```
## Context.getAbilityInfo
## Context.getAbilityInfo<sup>7+</sup>
getAbilityInfo(callback: AsyncCallback\<AbilityInfo>): void
......@@ -849,7 +849,7 @@ context.getAbilityInfo((err, data) => {
});
```
## Context.getAbilityInfo
## Context.getAbilityInfo<sup>7+</sup>
getAbilityInfo(): Promise\<AbilityInfo>
......@@ -873,7 +873,7 @@ context.getAbilityInfo().then((data) => {
});
```
## Context.getApplicationContext
## Context.getApplicationContext<sup>7+</sup>
getApplicationContext(): Context
......@@ -894,7 +894,7 @@ import featureAbility from '@ohos.ability.featureAbility'
var context = featureAbility.getContext().getApplicationContext();
```
## PermissionOptions
## PermissionOptions<sup>7+</sup>
**系统能力**:SystemCapability.Ability.AbilityRuntime.Core
......@@ -903,7 +903,7 @@ var context = featureAbility.getContext().getApplicationContext();
| pid | 只读 | number | 否 | 进程id。 |
| uid | 只读 | number | 否 | 用户id。 |
## PermissionRequestResult
## PermissionRequestResult<sup>7+</sup>
**系统能力**:SystemCapability.Ability.AbilityRuntime.Core
......@@ -913,7 +913,7 @@ var context = featureAbility.getContext().getApplicationContext();
| permissions | 只读 | Array\<string> | 是 | 用户传入的权限。 |
| authResults | 只读 | Array\<number> | 是 | 请求权限的结果。 |
## HapModuleInfo
## HapModuleInfo<sup>7+</sup>
Hap模块信息
......@@ -936,7 +936,7 @@ Hap模块信息
| installationFree | boolean | 是 | 否 | 是否支持免安装 |
| mainElementName | string | 是 | 否 | 入口ability信息 |
## AppVersionInfo
## AppVersionInfo<sup>7+</sup>
| 名称 | 类型 | 可读 | 可写 | 说明 |
| ------ | ------ | ------| ------ | ------ |
......
# Want
> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:**
> 本模块首批接口从API version 6 开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。
> 本模块首批接口从API version 8 开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。
Want是系统的基本通信组件。
......@@ -27,6 +27,4 @@ import Want from '@ohos.application.Want';
| flags | 只读 | number | 否 | 表示处理Want的方式。默认传数字,具体参考:[flags说明](js-apis-featureAbility.md#flags说明)。 |
| action | 只读 | string | 否 | 表示action选项描述。 |
| parameters | 只读 | {[key: string]: any} | 否 | 表示WantParams描述。 |
| entities | 只读 | Array\<string> | 否 | 表示entities相关描述。 | |
| extensionAbilityName<sup>9+<sup> | 只读 | string | 否 | Want中扩展能力名称的描述。 |
| extensionAbilityType<sup>9+<sup> | 只读 | number | 否 | Want中扩展能力类型的描述。 |
\ No newline at end of file
| entities | 只读 | Array\<string> | 否 | 表示entities相关描述。 | |
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册