1# ProcessInformation 2 3ProcessInformation模块提供对进程运行信息进行查询的能力。 4 5> **说明:** 6> 7> 本模块首批接口从API version 9开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 8 9## 使用说明 10 11通过appManager的[getRunningProcessInformation](js-apis-app-ability-appManager.md#appmanagergetrunningprocessinformation9)来获取。 12 13```ts 14import appManager from '@ohos.app.ability.appManager'; 15 16appManager.getRunningProcessInformation((error, data) => { 17 console.log('error: ' + error.code + ' data: ' + JSON.stringify(data)); 18}); 19``` 20 21## 属性 22 23**系统能力**:以下各项对应的系统能力均为SystemCapability.Ability.AbilityRuntime.Core 24 25| 名称 | 类型 | 可读 | 可写 | 说明 | 26| -------- | -------- | -------- | -------- | -------- | 27| pid | number | 是 | 否 | 进程ID。 | 28| uid | number | 是 | 否 | 用户ID。 | 29| processName | string | 是 | 否 | 进程名称。 | 30| bundleNames | Array<string> | 是 | 否 | 进程中所有运行的包名称。 | 31