<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: 18.2.0 -",
    "macOS: 14.0.0 -",
    "tvOS: 27.0.0 -",
    "visionOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "ScreenCaptureKit",
  "identifier" : "/documentation/ScreenCaptureKit/SCContentSharingPicker/setConfiguration(_:for:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "ScreenCaptureKit"
    ],
    "preciseIdentifier" : "s:So22SCContentSharingPickerC16ScreenCaptureKitE16setConfiguration_3foryAC0abcH0VSg_So8SCStreamCtF"
  },
  "title" : "setConfiguration(_:for:)"
}
-->

# setConfiguration(_:for:)

Sets the configuration for the content capture picker for a capture stream, providing allowed selection modes and content excluded from selection.

```
func setConfiguration(_ configuration: SCContentSharingPickerConfiguration?, for stream: SCStream)
```

## Parameters

`configuration`

The configuration to set for the given capture stream. When this value is `nil`, changes the stream configuration to use [`defaultConfiguration`](/documentation/ScreenCaptureKit/SCContentSharingPicker/defaultConfiguration-9v5sa).

`stream`

The capture stream to set a configuration for. When this value is `nil`, applies to all currently active streams.

---

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)