# AbilityStateData
定义Ability状态信息。
**系统能力**:以下各项对应的系统能力均为SystemCapability.Ability.AbilityRuntime.Core
| 名称 | 类型 | 可读 | 可写 | 说明 |
| ----------------------- | ---------| ---- | ---- | ------------------------- |
| pid8+ | number | 是 | 否 | 进程ID。 |
| bundleName8+ | string | 是 | 否 | 应用包名。 |
| abilityName8+ | string | 是 | 否 | Ability名称。 |
| uid8+ | number | 是 | 否 | 用户ID。 |
| state8+ | number | 是 | 否 | Ability状态。 |
| moduleName9+ | string | 是 | 否 | Ability所属的HAP包的名称。 |
| abilityType8+ | string | 是 | 否 | 能力类型、页面或服务等。 |
**示例:**
```ts
import appManager from "@ohos.application.appManager"
appManager.getForegroundApplications((error, data) => {
for(let i=0; i