Contents

setDeviceProperties(_:)

Sets the state of device properties.

Declaration

func setDeviceProperties(_ deviceProperties: CMIOExtensionDeviceProperties) throws

Parameters

  • deviceProperties:

    A properties object that contains the updated device state.

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.

See Also

Managing Properties