<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: 15.4.0 -",
    "macOS: 12.3.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreMediaIO",
  "identifier" : "/documentation/CoreMediaIO/CMIOExtensionProviderSource/setProviderProperties(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Core Media I/O"
    ],
    "preciseIdentifier" : "c:objc(pl)CMIOExtensionProviderSource(im)setProviderProperties:error:"
  },
  "title" : "setProviderProperties(_:)"
}
-->

# setProviderProperties(_:)

Set the state of provider properties.

```
func setProviderProperties(_ providerProperties: CMIOExtensionProviderProperties) throws
```

## Parameters

`providerProperties`

A provider properties object that contains the updated property states.

## Discussion

If you implement this method in Swift and an error occurs, throw
an error and pass more detailed information regarding the property
or properties that failed in the error that you throw. If you implement
this method in Objective-C and an error occurs, pass more
detailed information regarding the property or properties that failed
in the <doc://com.apple.documentation/documentation/Foundation/NSError/localizedDescription>
property of <doc://com.apple.documentation/documentation/Foundation/NSError>.

---

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)