Instance Method

updateTargetValue(_:completionHandler:)

Updates the target value.

Declaration

func updateTargetValue(_ targetValue: TargetValueType, completionHandler completion: @escaping (Error?) -> Void)

Parameters

targetValue

The new target value.

completion

The block executed after the request is processed.

error

nil on success; otherwise, error object indicating the reason for failure.

See Also

New Methods

init(characteristic: HMCharacteristic, targetValue: TargetValueType)

Initialize a characteristic write action with a specified characteristic and target value.

var characteristic: HMCharacteristic

The characteristic whose value is to be written by the action.

var targetValue: TargetValueType

The value that will be written to the characteristic when the action is executed.