提交 b0ebe58f 编写于 作者: W wusongqing

Added English docs

Signed-off-by: Nwusongqing <wusongqing@huawei.com>
上级 67523e70
......@@ -19,7 +19,7 @@ import app from '@ohos.application.appManager';
static isRunningInStabilityTest(callback: AsyncCallback&lt;boolean&gt;): void
Checks whether this application is undergoing a stability test. This method uses a callback to return the result.
Checks whether this application is undergoing a stability test. This API uses a callback to return the result.
- Parameters
| Name| Type| Mandatory| Description|
......
......@@ -30,7 +30,7 @@ on(event: string, callback: Function): void;
Subscribes to an event.
**System capabilities**:
**System capability**:
SystemCapability.Ability.AbilityRuntime.Core
......@@ -69,7 +69,7 @@ off(event: string, callback?: Function): void;
Unsubscribes from an event. If **callback** is specified, this method unsubscribes from the specified callback. If **callback** is not specified, this method unsubscribes from all callbacks in the event.
**System capabilities**:
**System capability**:
SystemCapability.Ability.AbilityRuntime.Core
......@@ -108,7 +108,7 @@ emit(event: string, ...args: Object[]): void;
Triggers an event.
**System capabilities**:
**System capability**:
SystemCapability.Ability.AbilityRuntime.Core
......
......@@ -26,13 +26,13 @@ abilitymanager.getExtensionRunningInfos(upperLimit, (err,data) => {
| Name| Type| Readable| Writable| Description|
| -------- | -------- | -------- | -------- | -------- |
| extension | ElementName | Yes| No| Information that matches an extension. <br><b>System capabilities: </b>SystemCapability.Ability.AbilityRuntime.Core|
| pid | number | Yes| No| Process ID. <br><b>System capabilities: </b>SystemCapability.Ability.AbilityRuntime.Core|
| uid | number | Yes| No| User ID. <br><b>System capabilities: </b>SystemCapability.Ability.AbilityRuntime.Core|
| processName | string | Yes| No| Process name. <br><b>System capabilities: </b>SystemCapability.Ability.AbilityRuntime.Core|
| startTime | number | Yes| No| Extension start time. <br><b>System capabilities: </b>SystemCapability.Ability.AbilityRuntime.Core|
| clientPackage | Array&lt;String&gt; | Yes| No| Names of all packages in the process. <br><b>System capabilities: </b>SystemCapability.Ability.AbilityRuntime.Core|
| type | [bundle.ExtensionAbilityType](#bundle-extensionabilitytype) | Yes| No| Extension type. <br><b>System capabilities: </b>SystemCapability.Ability.AbilityRuntime.Core|
| extension | ElementName | Yes| No| Information that matches an extension. <br><b>System capability</b>: SystemCapability.Ability.AbilityRuntime.Core|
| pid | number | Yes| No| Process ID. <br><b>System capability</b>: SystemCapability.Ability.AbilityRuntime.Core|
| uid | number | Yes| No| User ID. <br><b>System capability</b>: SystemCapability.Ability.AbilityRuntime.Core|
| processName | string | Yes| No| Process name. <br><b>System capability</b>: SystemCapability.Ability.AbilityRuntime.Core|
| startTime | number | Yes| No| Extension start time. <br><b>System capability</b>: SystemCapability.Ability.AbilityRuntime.Core|
| clientPackage | Array&lt;String&gt; | Yes| No| Names of all packages in the process. <br><b>System capability</b>: SystemCapability.Ability.AbilityRuntime.Core|
| type | [bundle.ExtensionAbilityType](#bundle-extensionabilitytype) | Yes| No| Extension type. <br><b>System capability</b>: SystemCapability.Ability.AbilityRuntime.Core|
## bundle.ExtensionAbilityType
......@@ -41,13 +41,13 @@ Enumerates the extension types.
| Name| Value| Description|
| -------- | -------- | -------- |
| FORM | 0 | Extension information of the form type. <br><b>System capabilities: </b>SystemCapability.BundleManager.BundleFramework|
| WORK_SCHEDULER | 1 | Extension information of the work scheduler type. <br><b>System capabilities: </b>SystemCapability.BundleManager.BundleFramework|
| INPUT_METHOD | 2 | Extension information of the input method type. <br><b>System capabilities: </b>SystemCapability.BundleManager.BundleFramework|
| SERVICE | 3 | Extension information of the service type. <br><b>System capabilities: </b>SystemCapability.BundleManager.BundleFramework|
| ACCESSIBILITY | 4 | Extension information of the accessibility type. <br><b>System capabilities: </b>SystemCapability.BundleManager.BundleFramework|
| DATA_SHARE | 5 | Extension information of the data share type. <br><b>System capabilities: </b>SystemCapability.BundleManager.BundleFramework|
| FILE_SHARE | 6 | Extension information of the file share type. <br><b>System capabilities: </b>SystemCapability.BundleManager.BundleFramework|
| STATIC_SUBSCRIBER | 7 | Extension information of the static subscriber type. <br><b>System capabilities: </b>SystemCapability.BundleManager.BundleFramework|
| WALLPAPER | 8 | Extension information of the wallpaper type. <br><b>System capabilities: </b>SystemCapability.BundleManager.BundleFramework|
| UNSPECIFIED | 9 | Extension information of the unspecified type. <br><b>System capabilities: </b>SystemCapability.BundleManager.BundleFramework|
| FORM | 0 | Extension information of the form type. <br><b>System capability</b>: SystemCapability.BundleManager.BundleFramework|
| WORK_SCHEDULER | 1 | Extension information of the work scheduler type. <br><b>System capability</b>: SystemCapability.BundleManager.BundleFramework|
| INPUT_METHOD | 2 | Extension information of the input method type. <br><b>System capability</b>: SystemCapability.BundleManager.BundleFramework|
| SERVICE | 3 | Extension information of the service type. <br><b>System capability</b>: SystemCapability.BundleManager.BundleFramework|
| ACCESSIBILITY | 4 | Extension information of the accessibility type. <br><b>System capability</b>: SystemCapability.BundleManager.BundleFramework|
| DATA_SHARE | 5 | Extension information of the data share type. <br><b>System capability</b>: SystemCapability.BundleManager.BundleFramework|
| FILE_SHARE | 6 | Extension information of the file share type. <br><b>System capability</b>: SystemCapability.BundleManager.BundleFramework|
| STATIC_SUBSCRIBER | 7 | Extension information of the static subscriber type. <br><b>System capability</b>: SystemCapability.BundleManager.BundleFramework|
| WALLPAPER | 8 | Extension information of the wallpaper type. <br><b>System capability</b>: SystemCapability.BundleManager.BundleFramework|
| UNSPECIFIED | 9 | Extension information of the unspecified type. <br><b>System capability</b>: SystemCapability.BundleManager.BundleFramework|
......@@ -11,5 +11,5 @@ Provides the permission request result.
| Name| Type| Readable| Writable| Description|
| -------- | -------- | -------- | -------- | -------- |
| permissions | Array&lt;string&gt; | Yes| No| Permissions requested. <br><b>System capabilities: </b>SystemCapability.Ability.AbilityRuntime.Core|
| authResults | Array&lt;number&gt; | Yes| No| Whether the requested permissions are granted or denied. The value **0** means that the requests permissions are granted, and **-1** means the opposite. <br><b>System capabilities: </b>SystemCapability.Ability.AbilityRuntime.Core|
| permissions | Array&lt;string&gt; | Yes| No| Permissions requested. <br><b>System capability</b>: SystemCapability.Ability.AbilityRuntime.Core|
| authResults | Array&lt;number&gt; | Yes| No| Whether the requested permissions are granted or denied. The value **0** means that the requests permissions are granted, and **-1** means the opposite. <br><b>System capability</b>: SystemCapability.Ability.AbilityRuntime.Core|
......@@ -26,7 +26,7 @@ appManager.getProcessRunningInfos((error,data) => {
| Name| Type| Readable| Writable| Description|
| -------- | -------- | -------- | -------- | -------- |
| pid | number | Yes| No| Process ID. <br><b>System capabilities: </b>SystemCapability.Ability.AbilityRuntime.Core|
| uid | number | Yes| No| User ID. <br><b>System capabilities: </b>SystemCapability.Ability.AbilityRuntime.Core|
| processName | string | Yes| No| Process name. <br><b>System capabilities: </b>SystemCapability.Ability.AbilityRuntime.Core|
| bundleNames | Array&lt;string&gt; | Yes| No| Names of all bundles running in the process. <br><b>System capabilities: </b>SystemCapability.Ability.AbilityRuntime.Core|
| pid | number | Yes| No| Process ID. <br><b>System capability</b>: SystemCapability.Ability.AbilityRuntime.Core|
| uid | number | Yes| No| User ID. <br><b>System capability</b>: SystemCapability.Ability.AbilityRuntime.Core|
| processName | string | Yes| No| Process name. <br><b>System capability</b>: SystemCapability.Ability.AbilityRuntime.Core|
| bundleNames | Array&lt;string&gt; | Yes| No| Names of all bundles running in the process. <br><b>System capability</b>: SystemCapability.Ability.AbilityRuntime.Core|
......@@ -19,9 +19,9 @@ import UriPermissionManager from '@@ohos.application.UriPermissionManager';
verifyUriPermission(uri: string, flag: wantConstant.Flags, accessTokenId: number, callback: AsyncCallback&lt;number&gt;): void
Checks whether an application has the permission specified by **flag** for an URI. This method uses a callback to return the result.
Checks whether an application has the permission specified by **flag** for an URI. This API uses a callback to return the result.
**System capabilities**:
**System capability**:
SystemCapability.Ability.AbilityRuntime.Core
......@@ -47,9 +47,9 @@ SystemCapability.Ability.AbilityRuntime.Core
verifyUriPermission(uri: string, flag: wantConstant.Flags, accessTokenId: number): Promise&lt;number&gt;
Checks whether an application has the permission specified by **flag** for an URI. This method uses a promise to return the result.
Checks whether an application has the permission specified by **flag** for an URI. This API uses a promise to return the result.
**System capabilities**:
**System capability**:
SystemCapability.Ability.AbilityRuntime.Core
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册