---
title: ProcessCapability.foreground
framework: browserenginekit
role: symbol
role_heading: Case
path: browserenginekit/processcapability/foreground
---

# ProcessCapability.foreground

A process capability for work in the foreground.

## Declaration

```swift
case foreground
```

## Mentioned in

Managing the browser extension life cycle

## Discussion

Discussion This capability grants the helper extension process the ability to run at foreground priority and work on behalf of the host process while the host process is in the foreground. Use this capability while your browser app is in the foreground to allow extensions that support the browser’s UI to run at foreground priority.

## See Also

### Granting capabilities

- [ProcessCapability.background](browserenginekit/processcapability/background.md)
- [ProcessCapability.suspended](browserenginekit/processcapability/suspended.md)
- [ProcessCapability.mediaPlaybackAndCapture(environment:)](browserenginekit/processcapability/mediaplaybackandcapture(environment:).md)
- [ProcessCapability.Grant](browserenginekit/processcapability/grant.md)
