---
title: "setDeviceProperties(_:)"
framework: coremediaio
role: symbol
role_heading: Instance Method
path: "coremediaio/cmioextensiondevicesource/setdeviceproperties(_:)"
---

# setDeviceProperties(_:)

Sets the state of device properties.

## Declaration

```swift
func setDeviceProperties(_ deviceProperties: CMIOExtensionDeviceProperties) throws
```

## Parameters

- `deviceProperties`: A properties object that contains the updated device state.

## Discussion

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 localizedDescription property of NSError. note: The property attributes associated with a property state are always nil when setting a value.

## See Also

### Managing Properties

- [availableProperties](coremediaio/cmioextensiondevicesource/availableproperties.md)
- [deviceProperties(forProperties:)](coremediaio/cmioextensiondevicesource/deviceproperties(forproperties:).md)
