Instance Method

initWithCharacteristic:targetValue:

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

Declaration

- (instancetype)initWithCharacteristic:(HMCharacteristic *)characteristic targetValue:(TargetValueType)targetValue;

Parameters

characteristic

The characteristic.

targetValue

The target value for the characteristic.

Return Value

A newly initialized characteristic write action object with the specified characteristic and target value.

See Also

New Methods

characteristic

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

targetValue

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