---
title: "init(desktopIndependentWindow:)"
framework: screencapturekit
role: symbol
role_heading: Initializer
path: "screencapturekit/sccontentfilter/init(desktopindependentwindow:)"
---

# init(desktopIndependentWindow:)

Creates a filter that captures only the specified window.

## Declaration

```swift
init(desktopIndependentWindow window: SCWindow)
```

## Parameters

- `window`: A window to capture.

## See Also

### Creating a filter

- [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)
- [init(display:excludingApplications:exceptingWindows:)](screencapturekit/sccontentfilter/init(display:excludingapplications:exceptingwindows:).md)
