From 5e36f874de5cb54dd15a81a67c74f9a08a9563d1 Mon Sep 17 00:00:00 2001 From: wusongqing Date: Fri, 18 Mar 2022 14:11:08 +0800 Subject: [PATCH] updated extensionrunninginfo api Signed-off-by: wusongqing --- .../apis/js-apis-extensionrunninginfo.md | 42 ++++++++++--------- 1 file changed, 23 insertions(+), 19 deletions(-) diff --git a/en/application-dev/reference/apis/js-apis-extensionrunninginfo.md b/en/application-dev/reference/apis/js-apis-extensionrunninginfo.md index 9a3457468b..c98ad5edd6 100644 --- a/en/application-dev/reference/apis/js-apis-extensionrunninginfo.md +++ b/en/application-dev/reference/apis/js-apis-extensionrunninginfo.md @@ -13,7 +13,7 @@ Provides extension running information. The extension running information is obtained through an **abilityManager** instance. - + ``` import abilitymanager from '@ohos.application.abilityManager'; abilitymanager.getExtensionRunningInfos(upperLimit, (err,data) => { @@ -24,30 +24,34 @@ abilitymanager.getExtensionRunningInfos(upperLimit, (err,data) => { ### Attributes +**System capability**: SystemCapability.Ability.AbilityRuntime.Core + | Name| Type| Readable| Writable| Description| | -------- | -------- | -------- | -------- | -------- | -| extension | ElementName | Yes| No| Information that matches an extension.
System capability: SystemCapability.Ability.AbilityRuntime.Core| -| pid | number | Yes| No| Process ID.
System capability: SystemCapability.Ability.AbilityRuntime.Core| -| uid | number | Yes| No| User ID.
System capability: SystemCapability.Ability.AbilityRuntime.Core| -| processName | string | Yes| No| Process name.
System capability: SystemCapability.Ability.AbilityRuntime.Core| -| startTime | number | Yes| No| Extension start time.
System capability: SystemCapability.Ability.AbilityRuntime.Core| -| clientPackage | Array<String> | Yes| No| Names of all packages in the process.
System capability: SystemCapability.Ability.AbilityRuntime.Core| -| type | [bundle.ExtensionAbilityType](#bundle-extensionabilitytype) | Yes| No| Extension type.
System capability: SystemCapability.Ability.AbilityRuntime.Core| +| extension | ElementName | Yes| No| Information that matches an extension.| +| pid | number | Yes| No| Process ID.| +| uid | number | Yes| No| User ID.| +| processName | string | Yes| No| Process name.| +| startTime | number | Yes| No| Extension start time.| +| clientPackage | Array<String> | Yes| No| Names of all packages in the process.| +| type | [bundle.ExtensionAbilityType](#bundle-extensionabilitytype) | Yes| No| Extension type.| ## bundle.ExtensionAbilityType -Enumerates the extension types. +Extension type. + +**System capability**: SystemCapability.BundleManager.BundleFramework | Name| Value| Description| | -------- | -------- | -------- | -| FORM | 0 | Extension information of the form type.
System capability: SystemCapability.BundleManager.BundleFramework| -| WORK_SCHEDULER | 1 | Extension information of the work scheduler type.
System capability: SystemCapability.BundleManager.BundleFramework| -| INPUT_METHOD | 2 | Extension information of the input method type.
System capability: SystemCapability.BundleManager.BundleFramework| -| SERVICE | 3 | Extension information of the service type.
System capability: SystemCapability.BundleManager.BundleFramework| -| ACCESSIBILITY | 4 | Extension information of the accessibility type.
System capability: SystemCapability.BundleManager.BundleFramework| -| DATA_SHARE | 5 | Extension information of the data share type.
System capability: SystemCapability.BundleManager.BundleFramework| -| FILE_SHARE | 6 | Extension information of the file share type.
System capability: SystemCapability.BundleManager.BundleFramework| -| STATIC_SUBSCRIBER | 7 | Extension information of the static subscriber type.
System capability: SystemCapability.BundleManager.BundleFramework| -| WALLPAPER | 8 | Extension information of the wallpaper type.
System capability: SystemCapability.BundleManager.BundleFramework| -| UNSPECIFIED | 9 | Extension information of the unspecified type.
System capability: SystemCapability.BundleManager.BundleFramework| +| FORM | 0 | Extension information of the form type.< | +| WORK_SCHEDULER | 1 | Extension information of the work scheduler type.< | +| INPUT_METHOD | 2 | Extension information of the input method type.< | +| SERVICE | 3 | Extension information of the service type.< | +| ACCESSIBILITY | 4 | Extension information of the accessibility type.< | +| DATA_SHARE | 5 | Extension information of the data share type.< | +| FILE_SHARE | 6 | Extension information of the file share type.< | +| STATIC_SUBSCRIBER | 7 | Extension information of the static subscriber type.< | +| WALLPAPER | 8 | Extension information of the wallpaper type.< | +| UNSPECIFIED | 9 | Extension information of the unspecified type.< | -- GitLab