<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: 18.2.0 -",
    "macOS: 12.3.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "ScreenCaptureKit",
  "identifier" : "/documentation/ScreenCaptureKit/SCContentFilter/init(display:excludingWindows:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "ScreenCaptureKit"
    ],
    "preciseIdentifier" : "c:objc(cs)SCContentFilter(im)initWithDisplay:excludingWindows:"
  },
  "title" : "init(display:excludingWindows:)"
}
-->

# init(display:excludingWindows:)

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

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

## Parameters

`display`

A display to capture.

`excluded`

An array of windows to exclude from the output.

## Discussion

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)