---
title: "init(display:excludingApplications:exceptingWindows:)"
framework: screencapturekit
role: symbol
role_heading: Initializer
path: "screencapturekit/sccontentfilter/init(display:excludingapplications:exceptingwindows:)"
---

# init(display:excludingApplications:exceptingWindows:)

Creates a filter that captures a display, excluding windows of the specified apps.

## Declaration

```swift
init(display: SCDisplay, excludingApplications applications: [SCRunningApplication], exceptingWindows: [SCWindow])
```

## Parameters

- `display`: A display to capture.
- `applications`: An array of apps to exclude from capture.
- `exceptingWindows`: An array of windows that are exceptions to the previous rules.

## Discussion

Discussion The initializer arguments provide a three-stage filter that gives you fine-grained control over the output: Specify a display to capture. If you don’t specify additional filter criteria, the stream includes all content for a display. Specify one or more apps with windows to exclude from the output. Specify one or more windows that are exceptions to the previous rules. If the previous rules include a window, specifying it as an exception excludes it from the output. Likewise, if the previous rules exclude a window, specifying it as an exception includes it in the output.

## See Also

### Creating a filter

- [init(desktopIndependentWindow:)](screencapturekit/sccontentfilter/init(desktopindependentwindow:).md)
- [init(display:including:)](screencapturekit/sccontentfilter/init(display:including:).md)
- [init(display:excludingWindows:)](screencapturekit/sccontentfilter/init(display:excludingwindows:).md)
- [init(display:including:exceptingWindows:)](screencapturekit/sccontentfilter/init(display:including:exceptingwindows:).md)
