---
title: "setConfiguration:forStream:"
framework: screencapturekit
role: symbol
role_heading: Instance Method
path: "screencapturekit/sccontentsharingpicker/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.

## Declaration

```occ
- (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 doc://com.apple.screencapturekit/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.

## See Also

### Stream configuration

- [defaultConfiguration](screencapturekit/sccontentsharingpicker/defaultconfiguration-9v5sa.md)
- [maximumStreamCount](screencapturekit/sccontentsharingpicker/maximumstreamcount-66khx.md)
