---
title: "updateConfiguration(_:completionHandler:)"
framework: screencapturekit
role: symbol
role_heading: Instance Method
path: "screencapturekit/scstream/updateconfiguration(_:completionhandler:)"
---

# updateConfiguration(_:completionHandler:)

Updates the stream with a new configuration.

## Declaration

```swift
func updateConfiguration(_ streamConfig: SCStreamConfiguration, completionHandler: (@Sendable ((any Error)?) -> Void)? = nil)
```

```swift
func updateConfiguration(_ streamConfig: SCStreamConfiguration) async throws
```

## Parameters

- `streamConfig`: An object that provides the updated stream configuration.
- `completionHandler`: A completion handler the system calls when this method completes. It includes an error if the update fails.

## See Also

### Updating stream configuration

- [updateContentFilter(_:completionHandler:)](screencapturekit/scstream/updatecontentfilter(_:completionhandler:).md)
