---
title: foreground
framework: browserenginekit
role: symbol
role_heading: Type Method
path: browserenginekit/beprocesscapability-7av05/foreground
---

# foreground

A capability that enables an extension process to do foreground priority work.

## Declaration

```occ
+ (instancetype) foreground;
```

## Discussion

Discussion 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 to browser extension processes

- [background](browserenginekit/beprocesscapability-7av05/background.md)
- [mediaPlaybackAndCaptureWithEnvironment:](browserenginekit/beprocesscapability-7av05/mediaplaybackandcapturewithenvironment:.md)
- [suspended](browserenginekit/beprocesscapability-7av05/suspended.md)
