# AbilityStateData
The **AbilityStateData** module defines the ability state information.
**System capability**: SystemCapability.Ability.AbilityRuntime.Core
| Name | Type | Readable| Writable| Description |
| ----------------------- | ---------| ---- | ---- | ------------------------- |
| pid8+ | number | Yes | No | Process ID. |
| bundleName8+ | string | Yes | No | Bundle name of an application. |
| abilityName8+ | string | Yes | No | Ability name. |
| uid8+ | number | Yes | No | User ID. |
| state8+ | number | Yes | No | Ability state. |
| moduleName9+ | string | Yes | No | Name of the HAP file to which the ability belongs. |
| abilityType8+ | string | Yes | No | Ability type. |
**Example**
```ts
import appManager from "@ohos.application.appManager"
appManager.getForegroundApplications((error, data) => {
for(let i=0; i