# AppStateData
The **AppStateData** module defines the application state data.
**System capability**: SystemCapability.Ability.AbilityRuntime.Core
**System API**: This is a system API and cannot be called by third-party applications.
| Name | Type | Mandatory| Description |
| ----------- | -------- | ---- | ------------------------------------------------------------ |
| bundleName8+ | string | No | Bundle name of the application. |
| uid8+ | number | No | User ID.|
| state8+ | number | No | Application state.|
**Example**
```ts
import appManager from "@ohos.application.appManager"
appManager.getForegroundApplications((error, data) => {
for(let i=0; i