setPropertyState(_:forProperty:)
Sets the value of a device property.
Declaration
func setPropertyState(_ propertyState: CMIOExtensionPropertyState<AnyObject>?, forProperty property: CMIOExtensionProperty)Parameters
- propertyState:
The updated property state.
- property:
The property to update.
Discussion
Setting a nil property state value doesn’t remove the property.