---
title: "init(display:excludingWindows:)"
framework: screencapturekit
role: symbol
role_heading: Initializer
path: "screencapturekit/sccontentfilter/init(display:excludingwindows:)"
---

# init(display:excludingWindows:)

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

## Declaration

```swift
init(display: SCDisplay, excludingWindows excluded: [SCWindow])
```

## Parameters

- `display`: A display to capture.
- `excluded`: An array of windows to exclude from 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:including:exceptingWindows:)](screencapturekit/sccontentfilter/init(display:including:exceptingwindows:).md)
- [init(display:excludingApplications:exceptingWindows:)](screencapturekit/sccontentfilter/init(display:excludingapplications:exceptingwindows:).md)
