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

# SCContentFilter

An instance that filters the content a stream captures.

```
class SCContentFilter
```

## Overview

Use a content filter to limit an [`SCStream`](/documentation/ScreenCaptureKit/SCStream) object’s output to only that matching your filter criteria. Retrieve the displays, apps, and windows that your app can capture from an instance of [`SCShareableContent`](/documentation/ScreenCaptureKit/SCShareableContent).

## Topics

### Creating a filter

[`init(desktopIndependentWindow:)`](/documentation/ScreenCaptureKit/SCContentFilter/init(desktopIndependentWindow:))

Creates a filter that captures only the specified window.

[`init(display:including:)`](/documentation/ScreenCaptureKit/SCContentFilter/init(display:including:))

Creates a filter that captures only specific windows from a display.

[`init(display:excludingWindows:)`](/documentation/ScreenCaptureKit/SCContentFilter/init(display:excludingWindows:))

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

[`init(display:including:exceptingWindows:)`](/documentation/ScreenCaptureKit/SCContentFilter/init(display:including:exceptingWindows:))

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

[`init(display:excludingApplications:exceptingWindows:)`](/documentation/ScreenCaptureKit/SCContentFilter/init(display:excludingApplications:exceptingWindows:))

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

### Filter properties

[`contentRect`](/documentation/ScreenCaptureKit/SCContentFilter/contentRect)

The size and location of the content to filter, in screen points.

[`pointPixelScale`](/documentation/ScreenCaptureKit/SCContentFilter/pointPixelScale)

The scaling factor used to translate screen points into pixels.

[`streamType`](/documentation/ScreenCaptureKit/SCContentFilter/streamType)

The type of the streaming content.

[`SCStreamType`](/documentation/ScreenCaptureKit/SCStreamType)

The display type of the presented stream.

[`style`](/documentation/ScreenCaptureKit/SCContentFilter/style)

The display style of the sharable content.



---

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)