appStateInfo
Read installation, process and foreground state separately.
js
appStateInfo(bundleId)Arguments
| Argument | Type | Meaning |
|---|---|---|
bundleId | string | App identifier. |
Returns
Object: {installed, running, foreground}.
Example
js
console.log(JSON.stringify(appStateInfo("com.apple.Preferences")));