Contents

updateConfiguration(_:completionHandler:)

Updates the stream with a new configuration.

Declaration

func updateConfiguration(_ streamConfig: SCStreamConfiguration, completionHandler: (@Sendable ((any Error)?) -> Void)? = nil)
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