<!--
{
  "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:forStream:",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "ScreenCaptureKit"
    ],
    "preciseIdentifier" : "c:objc(cs)SCContentSharingPicker(im)setConfiguration:forStream:"
  },
  "title" : "setConfiguration:forStream:"
}
-->

# setConfiguration:forStream:

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

```
- (void) setConfiguration:(SCContentSharingPickerConfiguration *) pickerConfig forStream:(SCStream *) stream;
```

## Parameters

`pickerConfig`

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)